Light States?
#1

Well, the wiki for UpdateVehicleDamageStatus has the status for only tires. What I would like to know is, what status turns off the lights, and what status turns on the lights? I've tried 0, and 15. Both of them do nothing for some reason. Maybe i'm doing it wrong? :\

pawn Код:
else if(PRESSED(KEY_SUBMISSION))
    {
      new vehicleid, panels, doors, lights, tires;
        if(statuslight == 0)
        {
          vehicleid = GetPlayerVehicleID(playerid);
            GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
            UpdateVehicleDamageStatus(vehicleid, panels, doors, 15, tires);
            statuslight = 1;
        }
        if(statuslight == 1)
        {
          GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
            UpdateVehicleDamageStatus(vehicleid, panels, doors, 0, tires);
            statuslight = 0;
        }
    }
And of course at the top, I have:

pawn Код:
new statuslight = 0;
Any help is much appreciated,

Sky.
Reply
#2

Make sure its night at your gamemode
Reply
#3

Quote:
Originally Posted by boelie
Make sure its night at your gamemode
I've already done that, it's pretty obvious. =p
Reply
#4

Re: Server update: 0.3a R5
Reply
#5

Quote:
Originally Posted by Sky4D
Quote:
Originally Posted by boelie
Make sure its night at your gamemode
I've already done that, it's pretty obvious. =p
Iknow XD ive seen players who forgot that though
Reply
#6

can you give me the whole script?
Reply
#7

Quote:
Originally Posted by ♣ Joker ♠
Thanks a bunch. =)

Quote:
Originally Posted by imosek
can you give me the whole script?
That is the whole script, that is involved with that function..
Reply
#8

you do something like that when you press a key that will open doors and bonnet at once? you know ... for tuning?



PS...
Please your entire script with that function .. pop up as I am doing the same mistakes ....
Reply
#9

Quote:
Originally Posted by imosek
you do something like that when you press a key that will open doors and bonnet at once? you know ... for tuning?



PS...
Please your entire script with that function .. pop up as I am doing the same mistakes ....
Eh.. it's intertwined into everything on my script, sorry.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)