06.01.2013, 12:18
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:
As you can see... I can define two things (the money and the player ID), but how would I continue to define Color1 and Color2?
Please & Thanks!
Here is what the CMD will be: /spray [playerid/PartOfName][Cost] [Color1] [Color2]
But how do I define each of the parts... like:
pawn Код:
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /spray [playerid/PartOfName] [Cost] [Color1] [Color2]");
return 1;
}
new playa;
new money;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
money = strval(tmp);
color1 = ????
color2= ????
Please & Thanks!