(101) : error 030: compound statement not closed at the end of file (started at line 82) |
forward AtualizarBars();
public AtualizarBars()
{
for(new playerid; playerid<GetMaxPlayers(); playerid++)
{
if(IsPlayerConnected(playerid)){ //linha 82
new Float:Health;
new HealthString[15];
GetPlayerHealth(playerid,Health);
format(HealthString, 15, " %d",floatround(Health));
TextDrawSetString(HealthBar[playerid],HealthString);
TextDrawShowForPlayer(playerid,HealthBar[playerid]);
new Float:Armour;
GetPlayerArmour(playerid,Armour);
if(Armour > 0)
{
new ArmourString[15];
format(ArmourString, 15, " %d",floatround(Armour));
TextDrawSetString(ArmourBar[playerid],ArmourString);
TextDrawShowForPlayer(playerid,ArmourBar[playerid]);
}
return 1;
}
//linha 101 с tem
forward AtualizarBars();
public AtualizarBars()
{
for(new playerid; playerid<GetMaxPlayers(); playerid++)
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "Este player nгo estб conectado");
new Float:Health;
new HealthString[15];
GetPlayerHealth(playerid,Health);
format(HealthString, 15, " %d",floatround(Health));
TextDrawSetString(HealthBar[playerid],HealthString);
TextDrawShowForPlayer(playerid,HealthBar[playerid]);
new Float:Armour;
GetPlayerArmour(playerid,Armour);
if(Armour > 0){
new ArmourString[15];
format(ArmourString, 15, " %d",floatround(Armour));
TextDrawSetString(ArmourBar[playerid],ArmourString);
TextDrawShowForPlayer(playerid,ArmourBar[playerid]);
}
return 1;
}
}