02.04.2019, 19:23
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).
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.
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);
Save it like you save every other variable (such like player kills or deaths), there is no difference.