zcmd + sscanf.. problem!
#7

Quote:

CMD:ma(playerid, params[])
{
new action[20], quantite;
if(sscanf(params,"s[20]d",action,quantite)
{
SendClientMessage(playerid, -1, "/ma <actions> <quantite>");
return SendClientMessage(playerid, COLOR_NOM, "Actions: ramasser, poser");
}


if(!strcmp(action, "poser")) SendClientMessage(playerid, -1, "good");
return 1;
}

See if that works. You'll need to fix the tabbing as I pasted it straight from Notepad++.
Reply


Messages In This Thread
zcmd + sscanf.. problem! - by Baltimore - 27.10.2014, 17:39
Re: zcmd + sscanf.. problem! - by Glossy42O - 27.10.2014, 18:12
Re: zcmd + sscanf.. problem! - by dominik523 - 27.10.2014, 18:13
Re : zcmd + sscanf.. problem! - by Baltimore - 27.10.2014, 18:13
Re: zcmd + sscanf.. problem! - by dominik523 - 27.10.2014, 18:18
Re : zcmd + sscanf.. problem! - by Baltimore - 27.10.2014, 18:21
Re: zcmd + sscanf.. problem! - by nemesis- - 27.10.2014, 19:38
Re : zcmd + sscanf.. problem! - by Baltimore - 27.10.2014, 19:45

Forum Jump:


Users browsing this thread: 1 Guest(s)