sscanf warnings
#1

hey all,

i made this small command so i could checkout every animation by just using a small command ingame, instead of restarting it all the time with an animation change.

but now i saw my console, which was giving alot of sscanf warnings.

the command:
pawn Код:
CMD:playanim(playerid, params[])
{
    ClearAnimations(playerid);
    new anim[128], libr[128];
    if(sscanf(params, "s[128]s]128]", anim, libr)) return SendClientMessage(playerid, COLOR_YELLOW, "Correct Usage: /playanim [anim-name] [anim-library]");
    ApplyAnimation(playerid,libr,anim,4.1,1,1,1,0,0,1);
    return 1;
}
the errors:
Код:
[19:28:27] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:28:27] sscanf warning: Format specifier does not match parameter count.
[19:28:29] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:28:29] sscanf warning: Format specifier does not match parameter count.
[19:28:40] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:28:40] sscanf warning: Format specifier does not match parameter count.
[19:28:44] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:28:44] sscanf warning: Format specifier does not match parameter count.
[19:28:46] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:28:46] sscanf warning: Format specifier does not match parameter count.
[19:28:52] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:28:52] sscanf warning: Format specifier does not match parameter count.
[19:28:59] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:28:59] sscanf warning: Format specifier does not match parameter count.
[19:29:04] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:29:04] sscanf warning: Format specifier does not match parameter count.
[19:29:10] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:29:10] sscanf warning: Format specifier does not match parameter count.
[19:29:11] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:29:11] sscanf warning: Format specifier does not match parameter count.
[19:29:14] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:29:14] sscanf warning: Format specifier does not match parameter count.
[19:29:33] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:29:33] sscanf warning: Format specifier does not match parameter count.
[19:29:39] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:29:39] sscanf warning: Format specifier does not match parameter count.
[19:30:02] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:30:02] sscanf warning: Format specifier does not match parameter count.
[19:30:08] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:30:08] sscanf warning: Format specifier does not match parameter count.
[19:30:13] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:30:13] sscanf warning: Format specifier does not match parameter count.
[19:30:37] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:30:37] sscanf warning: Format specifier does not match parameter count.
[19:30:45] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:30:45] sscanf warning: Format specifier does not match parameter count.
[19:30:48] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:30:48] sscanf warning: Format specifier does not match parameter count.
[19:30:50] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:30:50] sscanf warning: Format specifier does not match parameter count.
[19:30:55] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:30:55] sscanf warning: Format specifier does not match parameter count.
[19:30:59] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:30:59] sscanf warning: Format specifier does not match parameter count.
[19:31:25] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:31:25] sscanf warning: Format specifier does not match parameter count.
[19:31:35] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:31:35] sscanf warning: Format specifier does not match parameter count.
[19:31:46] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:31:46] sscanf warning: Format specifier does not match parameter count.
[19:31:49] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:31:49] sscanf warning: Format specifier does not match parameter count.
[19:32:13] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:32:13] sscanf warning: Format specifier does not match parameter count.
[19:32:18] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:32:18] sscanf warning: Format specifier does not match parameter count.
[19:32:22] sscanf warning: Strings without a length are deprecated, please add a destination size.
[19:32:22] sscanf warning: Format specifier does not match parameter count.
how can i fix this? i dont know what i am doing wrong at that code...

greets
Reply
#2

Quote:

s[128]s]128]

Look carefully. Tip: it has to do something with square brackets

@down: Solving problems, one at a time
Reply
#3

pawn Код:
s[128]s]128]
should be
pawn Код:
s[128]s[128]
Reply
#4

aw i see, lol silly mistake xD, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)