[QESTION] OnGameModeExit() and car locking
#4

You should use else if or switch.

> Door state: Locked.
> Your first 'if' statement: Unlock. [Doors gets unlocked]
> Second 'if' statement: Locked, because script sees it unlocked.

pawn Код:
switch(doors)
{
    case 0: { SetVehicleParamsEx(i,engine,lights,alarm,1,bonnet,boot,objective); SendClientMessage(playerid, -1, "Un-Locked."); }
    case 1: { SetVehicleParamsEx(i,engine,lights,alarm,0,bonnet,boot,objective); SendClientMessage(playerid, -1, "Locked."); }
}
Reply


Messages In This Thread
[QESTION] OnGameModeExit() and car locking - by Dirkon - 27.07.2011, 11:31
Re: [QESTION] OnGameModeExit() and car locking - by iPLEOMAX - 27.07.2011, 13:07
Re: [QESTION] OnGameModeExit() and car locking - by Dirkon - 27.07.2011, 13:19
Re: [QESTION] OnGameModeExit() and car locking - by iPLEOMAX - 27.07.2011, 13:40

Forum Jump:


Users browsing this thread: 1 Guest(s)