Sscanf String Warnings
#1

Hello Everyone,

I was just creating a new type of Building system. So when i create a new building.

It doesnt create the buildings as well as it doesnt write in the database but it shows me these warnings on server Log.

Код:
[01:42:53] sscanf warning: Strings without a length are deprecated, please add a destination size.
[01:42:53] sscanf warning: Strings without a length are deprecated, please add a destination size.
[01:42:58] sscanf warning: Strings without a length are deprecated, please add a destination size.
[01:42:58] sscanf warning: Strings without a length are deprecated, please add a destination size.
So why am i getting these sscanf warnings? What can be the problem?

Thanks
Ballu Miaa
Reply
#2

When using strings in sscanf, it should be s[length] and not just s.
Reply
#3

pawn Код:
new Name[24];
if(sscanf(params, "s[24]", Name)) //...
s[SIZE]
Reply
#4

Quote:
Originally Posted by SuperViper
Посмотреть сообщение
When using strings in sscanf, it should be s[length] and not just s.
Quote:
Originally Posted by paulor
Посмотреть сообщение
pawn Код:
new Name[24];
if(sscanf(params, "s[24]", Name)) //...
s[SIZE]
Guys that doesnt fix it?

Anything else brothers?
Reply
#5

it fix,it must fix. that means, you did something wrong.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)