SA-MP Forums Archive
warning 202: number of arguments does not match definition - 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)
+--- Thread: warning 202: number of arguments does not match definition (/showthread.php?tid=345808)



warning 202: number of arguments does not match definition - tyler12 - 26.05.2012

pawn Код:
CMD:kill(playerid,params[])
{
new Name[MAX_PLAYER_NAME];
SetPlayerHealth(playerid,0.0);
SendClientMessage(playerid,COLOR_WHITE,"You have killed yourself");
SendClientMessageToAll(COLOR_WHITE,"%s Has killed himself",Name);//line with warning
return 1;
}
my warning is:warning 202: number of arguments does not match definition i dont see anything wrong with it.


AW: warning 202: number of arguments does not match definition - Nero_3D - 26.05.2012

I do -> SendClientMessageToAll, try format


Re: AW: warning 202: number of arguments does not match definition - tyler12 - 26.05.2012

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
a string worked fine
thanks, repped


Re: warning 202: number of arguments does not match definition - davve95 - 26.05.2012

Message deleted ^^..