20.05.2015, 21:12
Quote:
Just for the sake of convenience, you should rename the IsEngineOn variable to something like: 'EngineStatus' and declare it as a bool:
PHP код:
new bool:EngineStatus[MAX_PLAYERS];
PHP код:
if(EngineStatus[playerid])
PHP код:
if(EngineStatus[playerid] == 1)
PHP код:
if(!EngineStatus[playerid])
PHP код:
if(EngineStatus[playerid] == 0)
You declare all the variables that will be put to use in the function's body. Okay, but why? I know why but I am 100 percent sure that other people that don't know will question that. In that case I prefer to go to the wiki and figure it out myself or seek a better tutorial. I am talking about the variables used for the SetVehicleParamsEx function.