Number of arguments does not match definition
#1

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;
}
Reply
#2

https://sampwiki.blast.hk/wiki/GetPlayerHealth
Reply
#3

Oh wow, when you type GetPlayerHealth( it only shows you playerid, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)