SA-MP Forums Archive
SSCANF ERROR - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SSCANF ERROR (/showthread.php?tid=471498)



SSCANF ERROR - ShveDDii - 23.10.2013

pawn Код:
if (sscanf(params, "ss[20]u", cmd,name,id))return SendClientMessage(playerid, COLOR_RED, "USAGE: /ClanCreate [ClanName] [Leader]");
In dos

pawn Код:
sscanf warning: Strings without a length are deprecated, please add a destination size
Help Please =]


Re: SSCANF ERROR - ]Rafaellos[ - 23.10.2013

pawn Код:
if(sscanf(params, "s[20]u", name, id)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /ClanCreate [ClanName] [Leader]");
What the cmd was supposed to do?


Re: SSCANF ERROR - ShveDDii - 23.10.2013

Yes, here the full code
http://pastebin.com/VWa0GWe4


Re: SSCANF ERROR - ]Rafaellos[ - 23.10.2013

I mean the cmd in the sscanf check


Re: SSCANF ERROR - OKStyle - 23.10.2013

Not use u without [size]: uui, use u[20] etc.


Re: SSCANF ERROR - ShveDDii - 23.10.2013

Working =]
thx