21.12.2016, 07:43
I just wonder what is Panels variables on this function? I just test that on UpdateVehicleDamageStatus but nothing change on the vehicle?
Function using:
//Panels
Source: https://sampwiki.blast.hk/wiki/DamageStatus
Function using:
//Panels
Quote:
decode_panels(panels, &front_left_panel, &front_right_panel, &rear_left_panel, &rear_right_panel, &windshield, &front_bumper, &rear_bumper) { front_left_panel = panels & 15; front_right_panel = panels >> 4 & 15; rear_left_panel = panels >> 8 & 15; rear_right_panel = panels >> 12 & 15; windshield = panels >> 16 & 15; front_bumper = panels >> 20 & 15; rear_bumper = panels >> 24 & 15; } encode_panels(front_left_panel, front_right_panel, rear_left_panel, rear_right_panel, windshield, front_bumper, rear_bumper) { return front_left_panel | (front_right_panel << 4) | (rear_left_panel << ![]() } |