Can't get SetVehicleParamsEx to work
#3

I'm happy with ur reply, but this ain't gonna work :P

Код:
stock VehicleCheckStatus(playerid)
{
    new
        vehicle = GetPlayerVehicleID(playerid),
        VehicleModel = GetVehicleModel(vehicle),
        engine, lights, alarm, doors, bonnet, boot, objective);
    if(VehicleModel == 509 || VehicleModel == 481 || VehicleModel == 510)
    {
        GetVehicleParamsEx(vehicle, engine, lights, alarm, doors, bonnet, boot, objective);
        if(engine != 1) SetVehicleParamsEx(vehicle, VEHICLE_PARAMS_ON, VEHICLE_PARAMS_ON, alarm, Vehicle[vehicleid][IsLocked], bonnet, boot, objective);
        else SetVehicleParamsEx(vehicle, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, alarm, Vehicle[vehicleid][IsLocked], bonnet, boot, objective);
    }
}
Because now you'll only activate the engine if you are one a bike. And i would like the system to work with Vehicle[vehicle][Engine] because i am editing an existing code and this is the easiest and best way to do it for me.
Reply


Messages In This Thread
Can't get SetVehicleParamsEx to work - by luckieluuk - 18.01.2011, 14:36
Re: Can't get SetVehicleParamsEx to work - by Toreno - 18.01.2011, 14:40
Re: Can't get SetVehicleParamsEx to work - by luckieluuk - 18.01.2011, 14:50
Re: Can't get SetVehicleParamsEx to work - by Not available - 18.01.2011, 14:59
Re: Can't get SetVehicleParamsEx to work - by Toreno - 18.01.2011, 15:01
Re: Can't get SetVehicleParamsEx to work - by luckieluuk - 18.01.2011, 20:19

Forum Jump:


Users browsing this thread: 1 Guest(s)