04.05.2018, 14:44
Quote:
The values for the doors are displayed in bits, so 111 shouldn't be a decimal number but binary.
111 in binary equals 7 in decimal, so to toggle all doors you need to use the value 7 or write it in binary format: Код:
UpdateVehicleDamageStatus(vehicleid, panels, 0b111, lights, tires); |