SA-MP Forums Archive
Sscanf warning...help me please - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Sscanf warning...help me please (/showthread.php?tid=553523)



Sscanf warning...help me please - kesarthakur - 30.12.2014

[11:03:40] sscanf warning: Strings without a length are deprecated, please add a destination size.

Getting this error in my server log...
whats is this?
does it effect the server?


Re: Sscanf warning...help me please - Ironboy - 30.12.2014

You've to increase the string size.


Re: Sscanf warning...help me please - AndySedeyn - 30.12.2014

That means that somewhere in your code you have something like this:

pawn Code:
if(sscanf(params, "s", /*var*/))
Instead, it should be something like:
pawn Code:
if(sscanf(params, "s[SIZE OF YOUR STRING HERE]", /*var*/))