19.11.2014, 19:45
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;
}