Help with vehicle health on speedometer
#2

I declared a variable in which I stored the rounded value

pawn Код:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
    new oststring[32], Float:Ostetenost, healthveh;
   
    GetVehicleHealth(vehicleid, Ostetenost);
    helthveh = floatround(Ostetenost, floatround_tozero);
   
    format(oststring, 32, "~%s~%d.0", healthveh);
    TextDrawSetString(SpeedoGPS[playerid], oststring);
    return 1;
}
Reply


Messages In This Thread
Help with vehicle health on speedometer - by ilepopivanov - 19.11.2014, 19:41
Re : Help with vehicle health on speedometer - by Dutheil - 19.11.2014, 19:45
Re: Re : Help with vehicle health on speedometer - by ilepopivanov - 19.11.2014, 19:50
Re : Help with vehicle health on speedometer - by Dutheil - 19.11.2014, 19:59

Forum Jump:


Users browsing this thread: 4 Guest(s)