25.04.2010, 13:28
Hi...
I just wanted to make a textdraw which show's you the ZAngle of your vehicle, but it shows me something like: 90.91932 now.
How can i make it show only "90"?
(i got this:
new Float:az, string[256];
TextDrawDestroy(tpanel);
TextDrawHideForPlayer(playerid, tpanel);
GetVehicleZAngle(v, az);
format(string, sizeof(string), "%f", az);
tpanel= TextDrawCreate(200.0, 200.2, string);
TextDrawFont(tpanel, 1);
TextDrawSetOutline(tpanel, 1);
TextDrawColor(tpanel, GREEN);
)
Thx
TextDrawShowForPlayer(playerid, tpanel);
I just wanted to make a textdraw which show's you the ZAngle of your vehicle, but it shows me something like: 90.91932 now.
How can i make it show only "90"?
(i got this:
new Float:az, string[256];
TextDrawDestroy(tpanel);
TextDrawHideForPlayer(playerid, tpanel);
GetVehicleZAngle(v, az);
format(string, sizeof(string), "%f", az);
tpanel= TextDrawCreate(200.0, 200.2, string);
TextDrawFont(tpanel, 1);
TextDrawSetOutline(tpanel, 1);
TextDrawColor(tpanel, GREEN);
)
Thx
TextDrawShowForPlayer(playerid, tpanel);