GG a toi je regarderais le code pour verifier qu' aucune erreur n' est presente ;)
EDIT: Si le joueur meurt il quitte la course ??
Si oui, tu peut mettre ca a la callback OnPlayerDeath
public OnPlayerDeath(playerid, killerid, reason)
{
if(RaceParticipant[playerid]>=1)
{
if(Participants==1) //Le dernier participant a quitté la course, elle est donc terminée.
{
endrace();
}
Participants--;
RaceParticipant[playerid]=0;
DisablePlayerRaceCheckpoint(playerid);
TextDrawDestroy(Tposition[playerid]);
TextDrawDestroy(Tappend[playerid]);
TextDrawDestroy(pcp[playerid]);
TextDrawDestroy(tempcp[playerid]);
}
return 1;
}
Sinon je ne voit aucune erreur sauf d orthographe comme celle la
SendClientMessage(playerid, COLOR_YELLOW, "vous avez optenu la pole position");
Correction :
SendClientMessage(playerid, COLOR_YELLOW, "Vous avez obtenu la pole position");
Apres sinon GG a toi
Et j' espere que tu resteras bien longtemps dans la communaute GTAOnline =)