SA-MP Forums Archive
sscanf problem - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: sscanf problem (/showthread.php?tid=278481)



sscanf problem - Speed - 22.08.2011

pawn Code:
sscanf warning: Strings without a length are deprecated, please add a destination size.
Can someone help me?


Re: sscanf problem - [MWR]Blood - 22.08.2011

Somewhere in your gamemode you got something like
pawn Code:
"s"
Put a size, like
pawn Code:
"s[128]"



Re: sscanf problem - Speed - 22.08.2011

Quote:
Originally Posted by Delux13
View Post
Somewhere in your gamemode you got something like
pawn Code:
"s"
Put a size, like
pawn Code:
"s[128]"
no, a have size on all strings :S


Re: sscanf problem - [MWR]Blood - 22.08.2011

Then check all your filterscripts and includes.


Re: sscanf problem - Speed - 22.08.2011

nope, but what if code goes like this:

pawn Code:
new player, reason[128];
if(sscanf(params, "us[120]", player, reason))
can this be a problem?


Re: sscanf problem - Speed - 22.08.2011

soo, this is problem of that code or what??, i get this error in server log


Re: sscanf problem - Darnell - 22.08.2011

pawn Code:
new player, reason[128];
if(sscanf(params, "us[128]", player, reason))



Re: sscanf problem - Speed - 23.08.2011

Quote:
Originally Posted by Darnell
View Post
pawn Code:
new player, reason[128];
if(sscanf(params, "us[128]", player, reason))
i get that, but is mein problem....

@Mido ok, i will now...