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: Number of arguments does not match definition (
/showthread.php?tid=460072)
Number of arguments does not match definition -
Sellize - 26.08.2013
I get this error at the red line
warning 202: number of arguments does not match definition
Код:
COMMAND:bf(playerid, params[])
{
if(GetPlayerHealth(playerid) > 1)
{
if(PlayerInfo[playerid][pDm] > 0)
{
SendClientMessage(playerid, -1, "{43FAFA}[DM] {FFFFFF}You can't do this in the DM.");
}
else
{
ResetPlayerWeapons(playerid);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 50);
}
}
else
{
SendClientMessage(playerid, -1, "{C5F252}[DM] {FFFFFF}Your health must be above 1 to join a deathmatch.");
}
return 1;
}
Re: Number of arguments does not match definition -
Misiur - 26.08.2013
https://sampwiki.blast.hk/wiki/GetPlayerHealth
Re: Number of arguments does not match definition -
Sellize - 26.08.2013
Oh wow, when you type GetPlayerHealth( it only shows you playerid, thanks