PLayer ID Undefined under this callback? Any alternatives?
#1

For my HealthCheck,

Код:
forward HealthCheck();
public HealthCheck()
{
    for(new i=0; i<MAX_PLAYERS; i++){
        if(IsPlayerConnected(i)){
            new Float:Health;
            GetPlayerHealth(i, Health);
            if(Health < 10){
                SetPlayerSkin(playerid,137);
            }
        }
    }
}
I get the Playerid is underfined. Is there a way around this? the plan is, Checks if players health is 10 or below, and if so, it will change the skin.
Reply


Messages In This Thread
PLayer ID Undefined under this callback? Any alternatives? - by Shockey HD - 21.07.2011, 22:01
Re: PLayer ID Undefined under this callback? Any alternatives? - by MadeMan - 21.07.2011, 22:02
Re: PLayer ID Undefined under this callback? Any alternatives? - by =WoR=Varth - 22.07.2011, 01:40

Forum Jump:


Users browsing this thread: 1 Guest(s)