SA-MP Forums Archive
SSCANF weird behavior - 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 weird behavior (/showthread.php?tid=324669)



SSCANF weird behavior - thimo - 10.03.2012

Fixed


Re: SSCANF weird behavior - AndreT - 10.03.2012

First of all, try updating your sscanf to the plugin version or fix the string specifier. It doesn't have a size put between [ and ].

Example:
sscanf(params, "us[128]", OtherPlayer, Reason)


Re: SSCANF weird behavior - Twisted_Insane - 10.03.2012

pawn Код:
if(sscanf(params, "us[64]", OtherPlayer, Reason)) return SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /ban [playerid] [reason]");
Be sure that you updated to version 2.5:

https://sampforum.blast.hk/showthread.php?tid=120356


Re: SSCANF weird behavior - thimo - 10.03.2012

Was indeed the problem of the wrong version of sscanf thanks guys!