crashdetact plugins Please Help Me
#3

Quote:
Originally Posted by [MG]Dimi
Посмотреть сообщение
for(new o = 0; o < GetMaxPlayers(); o ++ ) {

This.
Chnage it to
pawn Код:
for(new o = 0, a = GetMaxPlayers(); o < a; o ++ )
~Thanks~


Код:
forward VehicleRespawn(playerid, vehicleid, ispassenger);
public VehicleRespawn(playerid, vehicleid, ispassenger)
{

    GameTextForPlayer(playerid,"~r~Vehicles ~g~Respawn",5000,5);
    for(new i = 0; i < MAX_VEHICLES; i ++ ) {
         for(new o = 0, a = GetMaxPlayers(); o < a; o ++ ) { <<<<<<<<<<<<<< im change this 
              if(!IsPlayerConnected(o)) continue;
              if(IsAnyBodyInVehicle(i)) continue;
              SetVehicleToRespawn(i);
              
         }
    }
    return 1;
}

stock IsAnyBodyInVehicle(vid) {
  for(new i = 0; i < GetMaxPlayers(); i ++ ) {  <<<<<<<<<<< this need to change ?
       if(IsPlayerInVehicle(i, vid)) return 1;
  }
  return 0;
}
Reply


Messages In This Thread
crashdetact plugins Please Help Me - by Aloushi - 21.05.2012, 20:49
Re: crashdetact plugins Please Help Me - by [MG]Dimi - 21.05.2012, 22:13
Re: crashdetact plugins Please Help Me - by Aloushi - 21.05.2012, 22:25
Re: crashdetact plugins Please Help Me - by ViniBorn - 22.05.2012, 00:03
Re: crashdetact plugins Please Help Me - by [MG]Dimi - 22.05.2012, 08:56

Forum Jump:


Users browsing this thread: 1 Guest(s)