Colored armour bar textdraw - won't work
#2

Won't work as in doesn't update when getting hurt, or is always empty/full? Changed code a little:

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;
@down:
I was asking how it is working now, not how is it supposed to work
Reply


Messages In This Thread
Colored armour bar textdraw - won't work - by Saddin - 09.07.2013, 20:02
Re: Colored armour bar textdraw - won't work - by Misiur - 10.07.2013, 11:06
Re: Colored armour bar textdraw - won't work - by Saddin - 10.07.2013, 11:08
Re: Colored armour bar textdraw - won't work - by Calabresi - 10.07.2013, 11:17
Re: Colored armour bar textdraw - won't work - by Saddin - 10.07.2013, 11:31
Re: Colored armour bar textdraw - won't work - by Misiur - 10.07.2013, 11:38

Forum Jump:


Users browsing this thread: 1 Guest(s)