Command /a slap [id]
#5

Код:
new target;
if(!sscanf(params, "s[255]i", target))
Whats with the s[255]i ? Theres no string in this check. Only integer. Better do it:
Код:
new target;
if(!sscanf(params, "i", target))
I can tell you that the sscanf error in the game is obviously because you made alot of mess with the sscanf checks...

And by the way the fastest thing to do is to check all the parameters in one sscanf.. for example:
Код:
if(sscanf(params, "dds[32]", giveplayerid, moneys, detail)) return Mensaje(playerid, COLOR_WHITE, "USE: /contract [ID] [amount] [details]");
Reply


Messages In This Thread
Command /a slap [id] - by Luicy. - 21.05.2016, 14:11
Re: Command /a slap [id] - by SyS - 21.05.2016, 14:13
Re: Command /a slap [id] - by Luicy. - 21.05.2016, 14:19
Re: Command /a slap [id] - by SyS - 21.05.2016, 14:26
Re: Command /a slap [id] - by maximthepain - 21.05.2016, 14:29
Re: Command /a slap [id] - by Sjn - 21.05.2016, 14:51
Re: Command /a slap [id] - by GhostHacker - 21.05.2016, 14:53

Forum Jump:


Users browsing this thread: 1 Guest(s)