20.05.2016, 17:00
Wouldn't something like this be easier?
However if pHunger is 150 then the text is double (16 'I's) that's because you don't count 110-140 in your if statements.
pawn Code:
new new_value[17];
for (new i, j = floatround(i / 10, floatround_floor) + 1; i != j; i++) new_value[i] = 'I';
PlayerTextDrawSetString(playerid, tampilan[playerid][10], new_value);