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


Messages In This Thread
Light States? - by (.Aztec); - 23.05.2010, 13:40
Re: Light States? - by boelie - 23.05.2010, 13:49
Re: Light States? - by (.Aztec); - 23.05.2010, 13:56
Re: Light States? - by Nero_3D - 23.05.2010, 14:30
Re: Light States? - by boelie - 23.05.2010, 14:32
Re: Light States? - by imosek - 23.05.2010, 14:37
Re: Light States? - by (.Aztec); - 23.05.2010, 15:42
Re: Light States? - by imosek - 23.05.2010, 16:07
Re: Light States? - by (.Aztec); - 23.05.2010, 18:41

Forum Jump:


Users browsing this thread: 1 Guest(s)