26.04.2012, 21:47
Use float() to turn an integer in to a float.
If you need to turn a string in to a float, use floatstr().
To turn a float in to an integer, use floatround() (rounds up).
pawn Код:
new myInt = 69;
new Float:myFloat = float(myint);
To turn a float in to an integer, use floatround() (rounds up).