How to fix Errors
#1

Код:
forward GladanSam();
public GladanSam()
{
    for(new playerid; playerid < MAX_PLAYERS; playerid++)
    {
		new Float:health;
  		GetProgressBarValue(hungry[playerid] < 10)	    //(46) : warning 213: tag mismatch
		GetPlayerHealth(playerid, health);                       //(47) : error 001: expected token: ";", but found "-identifier-"
		SetPlayerHealth(playerid, health-3);
		UpdateProgressBar(hungry[playerid], playerid);
    }
    return 1;
}
Reply
#2

pawn Код:
forward GladanSam();
public GladanSam()
{
    for(new playerid; playerid < MAX_PLAYERS; playerid++)
    {
        new Float:health;
        GetProgressBarValue(hungry[playerid] < 10);     //(46) : warning 213: tag mismatch
        GetPlayerHealth(playerid, health);                       //(47) : error 001: expected token: ";", but found "-identifier-"
        SetPlayerHealth(playerid, health-3);
        UpdateProgressBar(hungry[playerid], playerid);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)