GetVehicleDamageStatus
#2

Panels, doors, lights & tires are ALL integers.

And in this case, as the wheel says, integers should be saved with the %d specifier.

Unless you're saving vehicle health (which is a FLOAT - so %f).

pawn Code:
new panels, doors, lights, tires;

GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);

printf("Vehicle Info: [Panels] : %d - [Doors] : %d - [Lights] : %d - [Tires] : %d", panels, doors, lights, tires);
Remember, panels and doors are both 0-1.

Save it like you save every other variable (such like player kills or deaths), there is no difference.
Reply


Messages In This Thread
GetVehicleDamageStatus - by Marshas - 02.04.2019, 17:09
Re: GetVehicleDamageStatus - by SymonClash - 02.04.2019, 19:23

Forum Jump:


Users browsing this thread: 1 Guest(s)