07.06.2009, 10:25
Okay, firstly thanks for even looking at his to help.
Okay I could do it like this
But that means I need to do that 100 times, which would kind of blag to write out, so could I create a string, then the amount of health = the amount of dots.
Thanks in advance.
Okay I could do it like this
pawn Код:
new Float:Health;
GetPlayerHealth(playerid,Health);
if(Health == 99)
{
TextDrawSetString(HealthBar[playerid],"...................................................................................................");
return 1;
}
pawn Код:
new Float:Health, string[128];
GetPlayerHealth(playerid,Health);
//format the string to health = dots
TextDrawSetString(HealthBar[playerid],string);