Guys Help With GetPlayerHealth(i);
#1

Hey Guys I Want another Help with /healall . I am currently working on my admin system and i have dms in my server so... i was it like this that when we /healall that time if any player is in dm then he wont be healed his health would be the same as he has.
I tryed it .. but got one error see this...
pawn Код:
CMD:healall(playerid,params[])
{
    if(PInfo[playerid][Level] >= 4)
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerInDM(i))
            {
                SetPlayerHealth(i,GetPlayerHealth(i));
            }
            else
            {
                SetPlayerHealth(i,100);
            }
        }
        new string[256];
        format(string,sizeof(string),"***Administrator %s Has Healed All The Player.Expect In DM areas",PlayerName2(playerid));
        SendClientMessageToAll(silver,string);
        return 1;
    }
    else return SendClientMessage(playerid,red,"ERROR: You Are Not higher Level To Use This Command");
}
ERROR:

Quote:

(599) : warning 202: number of arguments does not match definition


The Same Line in GETPLAYERHEALTH(I);

Help = +REP :P
Reply


Messages In This Thread
Guys Help With GetPlayerHealth(i); - by Torus - 05.05.2012, 13:58
Re: Guys Help With GetPlayerHealth(i); - by JaTochNietDan - 05.05.2012, 14:38
Re: Guys Help With GetPlayerHealth(i); - by Torus - 05.05.2012, 14:43

Forum Jump:


Users browsing this thread: 1 Guest(s)