Sscanf String Warnings - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Sscanf String Warnings (
/showthread.php?tid=374118)
Sscanf String Warnings -
Ballu Miaa - 01.09.2012
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
Re: Sscanf String Warnings -
SuperViper - 01.09.2012
When using strings in sscanf, it should be
s[length] and not just
s.
Re: Sscanf String Warnings -
paulor - 01.09.2012
pawn Код:
new Name[24];
if(sscanf(params, "s[24]", Name)) //...
s[SIZE]
Re: Sscanf String Warnings -
Ballu Miaa - 02.09.2012
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?
Re: Sscanf String Warnings -
leonardo1434 - 02.09.2012
it fix,it must fix. that means, you did something wrong.