27.07.2011, 22:14
No.
But I'd suggest using a triadic statement here to make the code more simple.
But I'd suggest using a triadic statement here to make the code more simple.
pawn Код:
new vID = GetPlayerVehicleID(playerid),
engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vID, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vid, (engine ? 0 : 1), lights, alarm, doors, bonnet, boot, objective);