Vehicle damage status - Lights & Panels
#9

Quote:
Originally Posted by Siralos
View Post
Thanks! So, no distinction among the right or left light; that's what I needed to know.

Regards,
Siralos
Yes there is, they are stored in bits

Use this

pawn Code:
encode_lights(light1, light2, light3, light4)
{
    return light1 | (light2 << 1) | (light3 << 2) | (light4 << 3);
}
UpdateVehicleDamageStatus(vehicleid, panels, doors, encode_lights(0, 0, 0, 0), tires);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)