04.07.2013, 07:53
(
Последний раз редактировалось exclide1; 04.07.2013 в 09:25.
)
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:
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;
}

