07.07.2010, 15:04
I have this code
Now, I do:
Me: /usedrugs
Reply: USAGE: /usedrugs [amount]
~
Me: /usedrugs 3
And i dont get any reply, Even when i do:
Me: /usedrugs 1823716236482638746283628737623846
Its dont reply anything (It have to reply: You dont have enough drugs.)
Код:
if (!strcmp(cmdtext,"/usedrugs",true)) { tmp = strtok(cmdtext,idx); if (!strlen(tmp)) { SendClientMessage(playerid,COLOR_BLUE,"USAGE: /usedrugs [amount]"); return 1; } new no; no = strval(tmp); if (no > Drugs[playerid]) { SendClientMessage(playerid,COLOR_BLUE,"You dont have enough drugs."); return 1; } if (no > 0 && no < 5) { format(string,sizeof(string),"You take %d grams of drugs and you get a good feeling.",no); SendClientMessage(playerid,COLOR_BLUE,string); Recover[playerid] = 3; RecoveryTime[playerid] += 10; Drugs[playerid] -= no; return 1; }
Me: /usedrugs
Reply: USAGE: /usedrugs [amount]
~
Me: /usedrugs 3
And i dont get any reply, Even when i do:
Me: /usedrugs 1823716236482638746283628737623846
Its dont reply anything (It have to reply: You dont have enough drugs.)