26.06.2012, 04:01
Solved
return -1;
new slot = GetNextEmptyDoorSlot();
if(slot != -1) PutPlayerInVehicle(playerid, vehicleid, slot);
At the top: #define INVALID_DOOR -1 stock GetNextEmptyDoorSlot() { for(new i=0; i<MAX_DOORS; i++) { if(DoorInfo[i][dTaken] == 0) { return i; } } return INVALID_DOOR; }