Need help with my vehicle lights
#1

Hi everybody !

Today my problem is that i have only one vehicle light which is on when i putt lights on. Screen:



This is the front but in the back, it's on:



Can you help me ?

My Pawno script:

pawn Код:
else if(newkeys == KEY_SUBMISSION)
    {
        if(pState == 2) // En voiture
        {
            new engine,lights,alarm,doors,bonnet,boot,objective;
            new tmpCarId = GetPlayerVehicleID(playerid);
            GetVehicleParamsEx(tmpCarId,engine,lights,alarm,doors,bonnet,boot,objective);
            if(lights == 0)
            {
                  SetVehicleParamsEx(tmpCarId,engine,1,alarm,doors,bonnet,boot,objective);
            }
            else
            {
                  SetVehicleParamsEx(tmpCarId,engine,0,alarm,doors,bonnet,boot,objective);
            }
            return 1;
        }
        else
        {
            return 1;
        }
    }
PS: Sorry for my bad english i'm french so explain in a easy english please

EDIT: Resolved, it was and "UpdateVehicleDamageStatus"
Reply
#2

http://forum.sa-mp.com/showthread.ph...=vehicle+light
No need to make another topic.

pawn Код:
SetVehicleParamEx(vehid,engine,encode_lights(1,1,1,1),doors,bonnet,boot,objective);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)