[SOLVED] Respawning vehicles
#6

pawn Код:
forward RespawnEmptyCars();
public RespawnEmptyCars()
{
  for(new i; i<MAX_VEHICLES; i++)
  {
    if(!IsVehicleOccupied(i))
    {
      SetVehicleToRespawn(i);
    }
  }
  return 1;
}
You should return 1; at the end. Also, you don't need to state that "i=0" since it automatically is equal to 0 when you create it (new).
Reply


Messages In This Thread
[SOLVED] Respawning vehicles - by KnooL - 13.01.2010, 17:16
Re: [UNSOLVED] Respawning vehicles - by KnooL - 14.01.2010, 16:17
Re: [UNSOLVED] Respawning vehicles - by Fedee! - 14.01.2010, 16:23
Re: [UNSOLVED] Respawning vehicles - by KnooL - 14.01.2010, 16:25
Re: [UNSOLVED] Respawning vehicles - by oncedead - 14.01.2010, 16:28
Re: [UNSOLVED] Respawning vehicles - by Badger(new) - 14.01.2010, 17:08
Re: [UNSOLVED] Respawning vehicles - by KnooL - 14.01.2010, 18:03
Re: [UNSOLVED] Respawning vehicles - by dice7 - 14.01.2010, 18:06
Re: [UNSOLVED] Respawning vehicles - by MadeMan - 14.01.2010, 18:07
Re: [UNSOLVED] Respawning vehicles - by KnooL - 14.01.2010, 18:12

Forum Jump:


Users browsing this thread: 2 Guest(s)