Help with Car controls
#4

Quote:
Originally Posted by slymatt
Посмотреть сообщение
wouldnt that case just constantly switch the car on and off?
No.

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);
Reply


Messages In This Thread
Help with Car controls - by slymatt - 27.07.2011, 22:03
Re: Help with Car controls - by iPLEOMAX - 27.07.2011, 22:06
Re: Help with Car controls - by slymatt - 27.07.2011, 22:08
Re: Help with Car controls - by AndreT - 27.07.2011, 22:14
Re: Help with Car controls - by slymatt - 27.07.2011, 22:15
Re: Help with Car controls - by slymatt - 27.07.2011, 22:47

Forum Jump:


Users browsing this thread: 2 Guest(s)