sscanf warning problem
#1

hey guys i want to make a /wave command with case 1 2 it will work but gives the warning on server log

PHP код:
[00:34:46sscanf warningFormat specifier does not match parameter count
on top
new aid;
my code
Код:
	dcmd(wave,4,cmdtext);
PHP код:
dcmd_wave(playerid,params[])
{
    if(
sscanf(params"us[100]",aid))
    {
        
SendClientMessage(playerid,COLOR_ERROR,"usage: /wave[1 -2 ]");
        return 
1;
    }
    
    switch(
aid) {
    case 
1:ApplyAnimation(playerid,"ON_LOOKERS","wave_loop"4.1000001);
    case 
3:ApplyAnimation(playerid,"KISSING","gfwave2"4.1000001);
    }
        return 
1;

Reply
#2

if(sscanf(params, "us[100]",aid))

here you ve got to make like this: if(sscanf(params, "us[100]", variable, string))
Reply
#3

If(sscanf(params,"i",aid))

You did s and you did u
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)