Errorz...(REP+)
#7

This would be the code stripped of the messages...
pawn Код:
for(new playerid; playerid < MAX_PLAYERS; playerid++)
{
    if(IsPlayerConnected(playerid))
    {
        new Float:health;
        GetPlayerHealth(playerid, health);
        if(GetProgressBarValue(hungry[playerid]) > 0)
        {
            SetProgressBarValue(hungry[playerid], GetProgressBarValue(hungry[playerid]) - 1)
        }
        else
        {
            SetPlayerHealth(playerid, health-5);
        }
    }
}
As for your code, it won't work. Mine is doing the same thing in the end. Just put that loop under a 5 Minute timer or something like that. Depends on how fast you want hunger to go down.

I am going to be going to bed, so I am unavailable for further assistance sorry I have to be up in 4 hours for work.
Reply


Messages In This Thread
Errorz...(REP+) - by bloodrocklee - 08.08.2012, 04:29
Re: Errorz...(REP+) - by AustinJ - 08.08.2012, 04:39
Re: Errorz...(REP+) - by bloodrocklee - 08.08.2012, 04:42
Re: Errorz...(REP+) - by Devilxz97 - 08.08.2012, 04:53
Re: Errorz...(REP+) - by AustinJ - 08.08.2012, 04:55
Re: Errorz...(REP+) - by bloodrocklee - 08.08.2012, 04:58
Re: Errorz...(REP+) - by AustinJ - 08.08.2012, 05:04
Re: Errorz...(REP+) - by bloodrocklee - 08.08.2012, 05:19
Re: Errorz...(REP+) - by bloodrocklee - 08.08.2012, 05:23
Re: Errorz...(REP+) - by Devilxz97 - 08.08.2012, 05:27

Forum Jump:


Users browsing this thread: 1 Guest(s)