A error?
#1

Suddenly my server have been stop. And in server log i got this error:
Код:
[12:58:40] sscanf warning: Strings without a length are deprecated, please add a destination size.
What to do about this? I had never error like this.
Reply
#2

You know the sscanf line?

Well, you need to add the length of the string.

So, like:
pawn Код:
if(sscanf(params,"us[28]",ID,reason))
[28] being the size of the string.
Reply
#3

Using "s" specifier in sscanf without a length will give that warning. An example:
pawn Код:
// that's the WRONG way:
if (sscanf(params, "rs", id, new_name)) ...
and

pawn Код:
// that's the CORRECT way:
if (sscanf(params, "rs[21]", id, new_name)) ...
Reply
#4

Umm... but where can i find this line?
Reply
#5

Quote:
Originally Posted by Tuntun
Посмотреть сообщение
Umm... but where can i find this line?
-> Search text -> if(sscanf

And search...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)