17.08.2014, 14:14
I have this code to show altitude, but it shows veery long numbers, sometimes it shows negavite values, and i dont know how to make it show the Z (or altitude) in meters :
Do i need to divide it by a specific value ?
Код:
if(GetVehicleModel(plane) == 476) { GetVehicleVelocity(vehicleid,speed_x,speed_y,speed_z); format(alt_string,256,"Altitude: %i meters",speed_z); TextDrawSetString(altitude[playerid], alt_string); } else { TextDrawSetString(altitude[playerid], " "); }