11.07.2011, 09:33
How can I convert a Float into an integer ?
new YourInteger = floatround(/*YourFloat*/, floatround_round);
CMD:float(playerid, params[])
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new ix = floatround(x, floatround_round);
new string[128];
format(string,128, "%d", ix);
print(string);
return 1;
}