Problems with floatround()
#1

Well, hello. I use floatround to convert a float to an integer (55.00 > 55) but I have this function:
pawn Код:
new Float:ZAngle = GetVehicleZAngle(GetPlayerVehicleID(i), ZAngle);
format(szString, 40, "HDG:~w~ %d", floatround(ZAngle, floatround_round));
TextDrawSetString(TD_8, szString);
My problem is that the textdraw always says

HDG: 1

It's always 1.
Thanks for your help.
Reply


Messages In This Thread
Problems with floatround() - by admantis - 21.05.2011, 22:36
Re: Problems with floatround() - by Mauzen - 21.05.2011, 22:38
Respuesta: Re: Problems with floatround() - by admantis - 21.05.2011, 22:39

Forum Jump:


Users browsing this thread: 1 Guest(s)