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)
+--- Thread: Sscanf Problem -.- (/showthread.php?tid=432956)



Sscanf Problem -.- - Stream - 25.04.2013

Yo.


guys i have this problem and i rly dont have time to explain more, so plz see this log and help me


Код:
[11:27:27] sscanf warning: Strings without a length are deprecated, please add a destination size.
Plz Help me


Re: Sscanf Problem -.- - LiamM - 25.04.2013

This has been caused in the past when scripters haven't designated a certain length / size of the string within the sscanf line of code. For example.

Your sscanf line that is causing this probably looks like this
pawn Код:
if(sscanf(params, "s", string)) return SendClientMessage(playerid, COLOR, "Enter a string with this command");
Try change it to this.
pawn Код:
if(sscanf(params, "s[32]", string)) return SendClientMessage(playerid, COLOR, "Enter a string with this command");
Although noting that '32' is an example and depending on how much text needs to be placed within the parameter will depend on what you make the destination size.

Get back to me if that fixes the issue