23.03.2013, 22:17
The code below basically creates a new float variable set at 0.0, then until the float equals 5.0, it will add 0.1 then print the value.
pawn Код:
new
Float:distance = 0.0
;
while(distance < 5)
{
distance += 0.1;
printf("%01.02f", distance);
}