Why the race are not finishing?
#1

This is the public -
PHP код:
forward WinBikeRace(playerid);
public 
WinBikeRace(playerid)
{
for(new 
i;i<= MAX_PLAYERS;i++) {
if(
InRace5[i] == 1) {
if(
i!=playerid) {
PlayerLoseRace i;
}}}
KillTimer(TimerMaslul2);
KillTimer(CheckRaceSecs);
Race5On 0;
PlayersDrift 0;
GetPlayerName(playeridPlayerWinTheRacesizeof(PlayerWinTheRace));
new 
PlayerLoseNameR[MAX_PLAYER_NAME];
GetPlayerName(PlayerLoseRacePlayerLoseNameRsizeof(PlayerLoseNameR));
format(knobRacesizeof(knobRace), ".$%d ежлд бдътшбеъ тм слен %s рйцз бойшех дгшйфи аъ %s [%.3f щрйеъ]"ReRacewar5d,PlayerLoseNameRPlayerWinTheRace,TimerTOFinishTheDrift[playerid]);
scmToAll(cblueknobRace);
scmToAll(Gold"[Drift_System] >> {FFFFFF}.отшлъ дгшйфийн фрейд лтъ {00BC00}•••");
GivePlayerMoneyEX(PlayerLoseRace, -ReRacewar5d);
GivePlayerMoneyEX(playeridReRacewar5d);
PlayerWinDrift false;
Deleteneon(playerid);
SetTimerEx("DeystroyDrift",3*1000,0,"%d",playerid);
for(new 
i;i<= MAX_PLAYERS;i++) {
if(
InRace5[i] == 1) {
Deleteneon(i);
InRace5[i] = 0WSRace 0PPRace[i] = 0DisablePlayerRaceCheckpoint(i);
new 
rand random(sizeof(SpawnPlaces));
SetPlayerPos(iSpawnPlaces[rand][0], SpawnPlaces[rand][1], SpawnPlaces[rand][2]);
SetPlayerVirtualWorld(i,0);
RacerMaslul1[i] = 0RacerMaslul2[i] = 0RacerMaslul3[i] = 0RacerMaslul4[i] = 0RacerMaslul5[i] = 0;
SetTimerEx("DeystroyDrift",3*1000,0,"%d",i);
} } return 
1; } 
playerid is the winner

and in OnPlayerEnterRaceCheckpoint -

PHP код:
       else if(RacerMaslul1[playerid] == 16)
     {
        
DisablePlayerRaceCheckpoint(playerid);
        
WinBikeRace(playerid);
     } 
[in the finish]

and this part happen for sure [the checkpoint disable]! but the public not.

nothing not happend............. and finally there are no winner.

What to do? what could block here?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)