Sscanf question
#1

Well today i randomly go on my console and found this
Код:
[16:26:03] sscanf warning: Missing length end.
what does this means?
Reply
#2

doesn't show line where the error is?
Reply
#3

Which sscanf version are you using?


Edit: The problem is that the end of the string was reached before the valid end of the length. Make sure your length is valid.
Reply
#4

Well i use the newest one, and i also got this
Код:
[16:54:02] sscanf warning: Strings without a length are deprecated, please add a destination size.
with this
pawn Код:
if(sscanf(params,"s",name))return SCM(playerid,grey,"USAGE: /setname [new name]");
Reply
#5

pawn Код:
if(sscanf(params,"s[24]",name))return SCM(playerid,grey,"USAGE: /setname [new name]");
And also, make a restriction that people cannot type more than 24 characters as the player name using strlen.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)