Race tournament crash.
#2

PHP код:
for(new i;i<MAX_PLAYERS;i++)
    {
    if(
Player_CheckPoint[playerid] == 0)
    {
      
SetPlayerRaceCheckpoint(playerid,1,CheckPoints[0][0],CheckPoints[0][1],CheckPoints[0][2],CheckPoints[1][0],CheckPoints[1][1],CheckPoints[1][2],9.7);
    }
    } 
That code is going through MAX_PLAYERS (500) checkpoints and setting the same playerids checkpoint, every time.

So what's happening is it's doing 500 checkpoints on connect for one player, to show only one for that one player.

PHP код:
//for(new i;i<MAX_PLAYERS;i++) 
    //{ 
    
if(Player_CheckPoint[playerid] == 0
    { 
      
SetPlayerRaceCheckpoint(playerid,1,CheckPoints[0][0],CheckPoints[0][1],CheckPoints[0][2],CheckPoints[1][0],CheckPoints[1][1],CheckPoints[1][2],9.7); 
    } 
    
//} 
Try that, I've commented out just the loop, and really, that should fix it, if it is indeed the reason.
Reply


Messages In This Thread
Race tournament crash. - by CREED115 - 11.08.2016, 04:53
Re: Race tournament crash. - by Sew_Sumi - 11.08.2016, 06:37
Re: Race tournament crash. - by CREED115 - 11.08.2016, 08:33
Re: Race tournament crash. - by Sew_Sumi - 11.08.2016, 13:10
Re: Race tournament crash. - by Konstantinos - 11.08.2016, 13:17
Re: Race tournament crash. - by CREED115 - 11.08.2016, 13:28
Re: Race tournament crash. - by Sew_Sumi - 11.08.2016, 13:57

Forum Jump:


Users browsing this thread: 2 Guest(s)