02.03.2019, 19:46
That's not how it works, if you want to check if the array contains the number, you have to run a loop and check for each one like this:
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT) { for(new i; sizeof(Bikes); i++) { if(GetVehicleModel(pVeh[playerid]) != Bikes[i]) continue; return PutPlayerInVehicle(playerid, pVeh[playerid], 0); } } return 1; }