Showing altitude in meters
#2

pawn Код:
if(GetVehicleModel(plane) == 476)
    {
    GetVehicleVelocity(vehicleid,speed_x,speed_y,speed_z);
    format(alt_string,256,"Altitude: %0.2f meters",speed_z);
    TextDrawSetString(altitude[playerid], alt_string);
    }
    else
    {
        TextDrawSetString(altitude[playerid], " ");
    }
updated your snippet.
I think %i was showing the many digits.
Making it to 0.2f can reduce it.
Reply


Messages In This Thread
Showing altitude in meters - by -TmS - 17.08.2014, 14:14
Re: Showing altitude in meters - by Champ - 17.08.2014, 14:23
Re: Showing altitude in meters - by -TmS - 17.08.2014, 14:29

Forum Jump:


Users browsing this thread: 1 Guest(s)