a minor question about read_argc()
yes, i read the sticky tutorial
Code:
Quote:
it is to say that when u type a single command without any argument amx x still won't tell u "u must specify a user" i thought it might be a small error so i didn't care about it but just at yesterday i modified a place it was Code:
i changed it to Code:
then it works well when u typed a single command without any argument amx x will remind u to add one then i'm puzzled :?: why "0" doesn't work? |
cause the wirst arg is the name of the cmd
e.g. amx_help 14 there are 2 arguments |
:) thank u for ur reply
i know that now so,as what u said,the script i copied from the tutorial is wrong is it?? and the id of the first argument must be 0 ,is it? i said this because i found another block in the tutorial Code:
Quote:
am i right?? :wink: thank u again~~ |
0 represents the First argument,
1 represents the second argument, 2 represents the third argument, etc etc... Basically it is like the indexing of arrays... amx_slap someone 100 Arg_0 = amx_slap Arg_1 = someone Arg_2 = 100 read_argc() = 3 I hope that helps! |
xeroblood,thank u very much :)
maybe devicenull should modify his sticky tutorial :wink: |
| All times are GMT -4. The time now is 17:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.