SA-MP Forums Archive
Sscanf warning - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Sscanf warning (/showthread.php?tid=271109)



Sscanf warning - Runedog48 - 23.07.2011

I get the error for sscanf for not having string length defined but the variables are integers can someone help me?
Here is a line that doesn't work:
pawn Код:
new i, s;
if(sscanf(params, "dd", i, s))return SendClientMessage(playerid, 0xFF0000FF, "How to use: '/setscore [Players id] [score]");
I'm using sscanf 2
Warning: Strings without an length are deprecated, please add an destination of size.


Re: Sscanf warning - Zh3r0 - 23.07.2011

You must be having another sscanf line where it says this. It's impossible to set string length on integers...


Re: Sscanf warning - Runedog48 - 23.07.2011

I'm using sscanf 2.


Re: Sscanf warning - Donya - 23.07.2011

show the error, are you even sure the error says not having string length?


Re: Sscanf warning - Runedog48 - 23.07.2011

Quote:
Originally Posted by Donya
Посмотреть сообщение
show the error, are you even sure the error says not having string length?
Warning: Strings without an length are deprecated, please add an destination of size.


Re: Sscanf warning - Donya - 23.07.2011

It's not that sscanf line then, because you use dd


Re: Sscanf warning - Famalamalam - 23.07.2011

You get this warning in the console when using a command. What command? /setscore?


Re: Sscanf warning - Runedog48 - 23.07.2011

Any command using sscanf


Re: Sscanf warning - Donya - 23.07.2011

lol... then some of your sscanf's must be using "s" instead of "s[string length]"


Respuesta: Sscanf warning - kirk - 23.07.2011

Use u as an ID for a player.