Quote:
Originally Posted by Konstantinos
Wouldn't something like this be easier?
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);
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.
|
new_value every 10 = "i" ? i will learn more for this loop, btw thanks for something new