Highscore
#4

Try something like:

//Global:
Code:
new RacePositions[3];
//This should be in the part where the race starts;
Code:
RacePositions[0] = -1;
RacePositions[1] = -1;
RacePositions[2] = -1;
Code:
public OnPlayerEnterRaceCheckpoint(playerid)
{
  ...
  case finish:
  {
    if(RacePositions[0] == -1)
    {
      RacePositions[0] = playerid;
      position = 1;
    }
    else if(RacePositions[1] == -1)
    {
      RacePositions[1] = playerid;
      position = 2;
    }
    else if(RacePositions[2] == -1)
    {
      RacePositions[2] = playerid;
      position = 3;
    }   
    //Rest of that callback....
  }
}
Reply


Messages In This Thread
Highscore - by Ribber - 14.04.2009, 20:44
Re: Highscore - by Ribber - 14.04.2009, 22:25
Re: Highscore - by Ribber - 15.04.2009, 00:05
Re: Highscore - by Sandra18[NL] - 15.04.2009, 00:24
Re: Highscore - by Ribber - 15.04.2009, 00:44
Re: Highscore - by Backwardsman97 - 15.04.2009, 00:47
Re: Highscore - by Ribber - 15.04.2009, 00:55
Re: Highscore - by Ribber - 15.04.2009, 10:20
Re: Highscore - by Ribber - 15.04.2009, 12:56
Re: Highscore - by thiaZ_ - 07.12.2009, 19:48

Forum Jump:


Users browsing this thread: 2 Guest(s)