SetVehicleEngineState(vehicleid, state) { new engine, lights, alarm, doors, bonnet, boot, objective; GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(vehicleid, state, lights, alarm, doors, bonnet, boot, objective); }
SetVehicleEngineState(vehicleid, vstate) { new engine, lights, alarm, doors, bonnet, boot, objective; GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(vehicleid, vstate, lights, alarm, doors, bonnet, boot, objective); }
I changed state to vstate, because state interferes with something else.
Код:
SetVehicleEngineState(vehicleid, vstate) { new engine, lights, alarm, doors, bonnet, boot, objective; GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(vehicleid, vstate, lights, alarm, doors, bonnet, boot, objective); } |
SetVehicleEngineState(vehicleid, vstate)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
return SetVehicleParamsEx(vehicleid, vstate, lights, alarm, doors, bonnet, boot, objective);
}