Sscanf warning
#1

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.
Reply
#2

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

I'm using sscanf 2.
Reply
#4

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

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.
Reply
#6

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

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

Any command using sscanf
Reply
#9

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

Use u as an ID for a player.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)