19.12.2010, 11:41
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:
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:
-----------------------------
Alright.. it says i have to convert to binary numbers..but how do i do that?
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
Код:
16909060
Alright.. it says i have to convert to binary numbers..but how do i do that?