17.04.2013, 19:43
hey guys i want to make a /wave command with case 1 2 it will work but gives the warning on server log
on top
new aid;
my code
PHP код:
[00:34:46] sscanf warning: Format specifier does not match parameter count.
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.1, 0, 0, 0, 0, 0, 1);
case 3:ApplyAnimation(playerid,"KISSING","gfwave2", 4.1, 0, 0, 0, 0, 0, 1);
}
return 1;
}