[Question] Opening a single door with 'UpdateVehicleDamageStatus'
#1

As the title says i want to open a single door or be able to check if a door is opened with GetVehicleDamageStatus or/and UpdateVehicleDamageStatus.
So ive read the 'door damage status' part in the sa-mp wiki. The part i dond understand is this example;
----------------------------
Example ;
The following code tells that the hood is removed, the front left door damaged, the front right door opened and the trunk is damaged and opened:

Код:
00000001 00000010 00000011 000001009
However SA-MP returns a decimal number so you have to convert it to a binary number first to get a result like above. What SA-MP would return you in this case is this:

Код:
16909060
-----------------------------

Alright.. it says i have to convert to binary numbers..but how do i do that?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)