29.06.2014, 20:57
pawn Код:
#define RACE_PLAYERS 2
public OnPlayerEnterRaceCheckpoint(playerid)
{
DisablePlayerCheckpoint(playerid);
if(IsRacing[playerid] == true)
{
new lp_string[36], pos_string[36];
new CP = floatround(LAP[playerid], floatround_floor);
new pos = RACE_PLAYERS;
format(lp_string, sizeof(lp_string), "lap: %d / 5", CP + 1);
/*for(new i=0; i < RACE_PLAYERS; i++)
{
if(LAP[evento[0][grupo_evento[0][playerid]][i]] < LAP[playerid] && evento[0][grupo_evento[0][playerid]][i] != playerid)
{
pos = pos - 1;
}
}
format(pos_string, sizeof(pos_string), "Pos: %d / %d", pos, RACE_PLAYERS);*/
// More code
}
}
Any idea how can i solve that?
PD: Sorry for my bad english