Sscanf Problem -.-
#1

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
Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)