SA-MP Forums Archive
[Question] Opening a single door with 'UpdateVehicleDamageStatus' - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Question] Opening a single door with 'UpdateVehicleDamageStatus' (/showthread.php?tid=200789)



[Question] Opening a single door with 'UpdateVehicleDamageStatus' - boelie - 19.12.2010

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?