What am I doing Wrong? (Vehicle params)
#3

Quote:
Originally Posted by Grim_
Посмотреть сообщение
You know that this code will run forever until the player gets out?
pawn Код:
while(IsPlayerInAnyVehicle(playerid))
    {
        GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
        SetVehicleParamsEx(vehicleid, engine, VEHICLE_PARAMS_OFF, alarm, doors, bonnet, boot, objective);
        SetVehicleParamsEx(vehicleid, engine, VEHICLE_PARAMS_ON, alarm, doors, bonnet, boot, objective);
    }
Mh, thats kinda what I want it to do though, I want the lights to flash on and off, as if it were like a cop car (yeah, I know it goes on and on), but I can't seem to get anything to when when i type /onlights.

Anyways, if I did something wrong, please help me and try to correct it.
Reply


Messages In This Thread
What am I doing Wrong? (Vehicle params) - by Hiitch - 30.11.2010, 22:12
Re: What am I doing Wrong? (Vehicle params) - by Grim_ - 30.11.2010, 22:13
Re: What am I doing Wrong? (Vehicle params) - by Hiitch - 30.11.2010, 22:15
Re: What am I doing Wrong? (Vehicle params) - by Grim_ - 30.11.2010, 22:21
Re: What am I doing Wrong? (Vehicle params) - by Hiitch - 30.11.2010, 22:22
Re: What am I doing Wrong? (Vehicle params) - by bn102 - 01.12.2010, 06:29

Forum Jump:


Users browsing this thread: 2 Guest(s)