GetVehicleHealth in textdraw problem
#1

I have textdraws Ostecenje(Impaired) and i use this script :
Quote:

if(IsPlayerInAnyVehicle(playerid))
{
if(!VoziloJeBicikla(GetVehicleModel(GetPlayerVehic leID(playerid))))
{
new Ostecenje[100];new Float:HP;
GetVehicleHealth(GetPlayerVehicleID(playerid), HP);
format(Ostecenje, sizeof(Ostecenje), "%d", HP*0.0001);
PlayerTextDrawSetString(playerid, Speedo[14][playerid], Ostecenje);
}
}

And i have this results http://www.dodaj.rs/f/D/1q/FbBIhzd/sa-mp-251.png with OstecenjeImpaired i want to be 10% 20% no 115.3111111112312 Please help and sorry because bad English..
Reply


Messages In This Thread
GetVehicleHealth in textdraw problem - by Vaki - 17.06.2015, 19:38
Re: GetVehicleHealth in textdraw problem - by b3nz - 17.06.2015, 19:46
Re: GetVehicleHealth in textdraw problem - by SloProKiller - 17.06.2015, 19:50
Re: GetVehicleHealth in textdraw problem - by Vaki - 17.06.2015, 19:52

Forum Jump:


Users browsing this thread: 1 Guest(s)