codition
#6

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.
Reply


Messages In This Thread
codition - by ratxrat - 20.05.2016, 15:59
Re: codition - by luke49 - 20.05.2016, 16:06
Re: codition - by ratxrat - 20.05.2016, 16:08
Re: codition - by Naruto_Emilio - 20.05.2016, 16:32
Re: codition - by ratxrat - 20.05.2016, 16:58
Re: codition - by Konstantinos - 20.05.2016, 17:00
Re: codition - by ratxrat - 20.05.2016, 17:21
Re: codition - by ratxrat - 20.05.2016, 17:27

Forum Jump:


Users browsing this thread: 1 Guest(s)