Код:
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;
}
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;
}