10.07.2013, 11:06
Won't work as in doesn't update when getting hurt, or is always empty/full? Changed code a little:
@down:
I was asking how it is working now, not how is it supposed to work
pawn Код:
new Float:Armour, arm;
GetPlayerArmour(playerid, Armour);
if(Armour = 0)
{
TextDrawHideForPlayer(playerid, ArmourBar[playerid]);
return 1;
}
arm = floatround(Armour, floatround_round) / 10;
new dots[11];
memset(dots, '.', arm + 1);
TextDrawSetString(ArmourBar[playerid], dots);
TextDrawShowForPlayer(playerid,ArmourBar[playerid]);
return 1;
I was asking how it is working now, not how is it supposed to work