How to fix rRace System: "Race Position".
#2

I might as well bump this one, because I stumbled into the same problem. RacePosition variable just keeps increasing with every new race. Any ideas?

Or at least can someone explain me how does it get race position from just this one line under OnPlayerEnterRaceCheckpoint?

RacePosition[playerid] = floatround(CPCoords[CPProgess[playerid]][3], floatround_floor);

EDIT: Still not quite understanding how it works, but this fixed it under LoadRace(), but before reading the race files:
Код:
for(new i;i<MAX_RACE_CHECKPOINTS_EACH_RACE;i++)
	{
	    CPCoords[i][0]=0.0;
	    CPCoords[i][1]=0.0;
	    CPCoords[i][2]=0.0;
	    CPCoords[i][3]=0.0;
	}
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
	    CPProgess[i] = 0;
	    CPCoords[i][3] = 0;
	}
Reply


Messages In This Thread
How to fix rRace System: "Race Position". - by Edvin - 05.01.2013, 12:29
Re: How to fix rRace System: "Race Position". - by exclide1 - 04.07.2013, 07:53
Re: How to fix rRace System: "Race Position". - by dr1ftp0w3r - 14.01.2014, 12:19
Re: How to fix rRace System: "Race Position". - by ]Rafaellos[ - 14.01.2014, 12:52

Forum Jump:


Users browsing this thread: 1 Guest(s)