sscanf warning: Strings without a length are deprecated, please add a destination size.
#1

Can a server crash if you get this warning in your server log?
Reply
#2

You get this error because your string without a length you used
pawn Код:
new reason[24];
if(sscanf(params, "s",reason))...//empty string cell
You should use instead:
pawn Код:
new reason[24];
if(sscanf(params, "s[24]",reason)) ...
Reply
#3

No, your server won't crash or anything, but you should really use the string size as SilentSould has mentionned above.
Reply
#4

To add on something which hasn't been said: If you do not do what SilentSoul demonstrated, your strings will be majorly truncated so it's really for your own interest.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)