vehicle health
#5

VehicleHealth[id] = GetVehicleHealth(id, health);
^^^ this line is wrong in probably one/bot of these issues:
A) GetVehicleHealth doesn't return the health, it works like GetPlayerName
B) Declare VehicleHealth as float if you didn't already
C) You should send the function the actual vehicle ID, not the array ID of it (doubt they are same in your code, they are same in mine tho.)

Right way to use:
Quote:

GetVehicleHealth(vehicleid, VehicleHealth[id]);

Reply


Messages In This Thread
vehicle health - by alexanderjb918 - 24.10.2015, 10:36
Re : vehicle health - by StreetRP - 24.10.2015, 10:45
Re : vehicle health - by alexanderjb918 - 24.10.2015, 10:50
Re : vehicle health - by StreetRP - 24.10.2015, 10:54
Re: vehicle health - by PrO.GameR - 24.10.2015, 13:38

Forum Jump:


Users browsing this thread: 1 Guest(s)