06.01.2013, 13:12
Quote:
I need help making a /respray command for mehaincs.
Here is what the CMD will be: /spray [playerid/PartOfName][Cost] [Color1] [Color2] But how do I define each of the parts... like: pawn Код:
Please & Thanks! |
PHP код:
new money = strval(tmp);
tmp = strtok(cmdtext, idx);
new color1 = strval(tmp);
tmp = strtok(cmdtext, idx);
new color2= strval(tmp);
but why don 't you use sscanf it's faster , shorter and easyier
and a commandprocessor but it is also possible to use it with strcmp commands