Some small questions (very small!)
hi,
i am new to amxmodx. i just coded some small amx plugins but i still have some small questions about the scripting language. 1. read_argv(1,args,8) read_argv(2,arg2,256) that means: command args arg2 while args has a length of max 8 characters and arg2 of 256 - right? an example would be: say /kick affe command="say" args="/kick" arg2="affe" so arguments are seperated by a blank (space)? 2. i often see values inserted by %s and sometimes by %d. does that mean %s is a string and %d is a number? so how to know what is a string and what is a number? 3. is this code ok?: Code:
if its ok - could it be tuned? any suggestions? 1000 thanks 4 your help! nice to be with u ;) ok - hmm small tags - nice - /me blind[/small] |
1.yes
2.yes (when using double quotes you can also do this, command "argument 1 argument 1 still going on" "argument 2, yep still argument 2") 3. Not sure, try using the [ small ] tags. |
hmm - syntax seems to be ok - but will it work?
and your answer 2 matches question 1 ;) |
now i tested my code - and it is working BUT:
using: say pg [email protected] works fine - but using the binded chat button arg2 is not recognized?! only by using ": pg "[email protected]" is that normal? do i have to use console input only? |
| All times are GMT -4. The time now is 14:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.