Binary/Bits stuff for tire popping
#1

This is something I really need to learn..

This code makes the back two tires pop:

pawn Код:
GetVehicleDamageStatus(vehicleid, Panels, Doors, Lights, Tires);
UpdateVehicleDamageStatus(vehicleid, Panels, Doors, Lights, 1 | (0 << 1) | (1 << 2) | (0 << 3));
But the problem is, it makes the front two NOT popped - repairing them if they are already popped. How do I make it so it keeps any others popped?

https://sampwiki.blast.hk/wiki/TireStates
Reply


Messages In This Thread
Binary/Bits stuff for tire popping - by MP2 - 25.01.2013, 20:24
Re: Binary/Bits stuff for tire popping - by Vince - 25.01.2013, 20:29
Re: Binary/Bits stuff for tire popping - by MP2 - 25.01.2013, 20:41

Forum Jump:


Users browsing this thread: 1 Guest(s)