Quote:
Originally Posted by dice7
Try
pawn Код:
forward RespawnEmptyCars(); public RespawnEmptyCars() { for(new i = 1; i<MAX_VEHICLES; i++) { if(!IsVehicleOccupied(i)) { if(GetVehicleModel(i)) { SetVehicleToRespawn(i); } } } }
so you wont respawn invalid ids
|
Thank you for your reply, but still the same.
Quote:
Originally Posted by MadeMan
Try this debug:
pawn Код:
forward RespawnEmptyCars(); public RespawnEmptyCars() { for(new i; i<MAX_VEHICLES; i++) { printf("nr. %i is called", i); if(!IsVehicleOccupied(i)) { SetVehicleToRespawn(i); } } return 1; }
|
Thank you for your reply, now the serverlog says it has called from 1 to 2000 cars
EDIT: 1 to 18