27.10.2014, 18:13
Let's say you have written this: "/ma poser 5". You need to check with sscanf for 2 parameters, string which goes after /ma and integer which goes after the string.
Код:
new action[10]; if(strcmp(params, "poser", false)) { new quantite; if(sscanf(params, "s[10]d", action,quantite)) // <---- return SendClientMessage(playerid, -1, "/ma poser <quantitй>"); SendClientMessage(playerid, -1, "good"); }