SA-MP Forums Archive
[HELP] player get wrong cp - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] player get wrong cp (/showthread.php?tid=593994)



[HELP] player get wrong cp - Luca12 - 12.11.2015

Hello everyone. So I have variable StreetRace and I have command /a4021 - with this I assing to some player left track and variable StreetRace to 1 and /a4022 with this I assign right track to some player and setting him variable StreetRace to 2. Know's the problem when I run timer for race /start402 I have timer 4021 4022 and in 4023 I have a code which you can see under this text. The problem is cps are sets but the player who get streetrace variable 1 he see cp for streetrace2 variable and player who is streetrace2 he don't see any cp? Why is that? Thanks

pawn Код:
if(PlayerInfo[i][StreetRace] == 1)
        {
            DisablePlayerCheckpoint(i);
            SetPlayerCheckpoint(i,1551.6914,-2501.4941,13.5547,8.0); //cp for left side
            PlayerInfo[i][StreetRace] = 3;
        }
        if(PlayerInfo[i][StreetRace] == 2)
        {
            DisablePlayerCheckpoint(i);
            SetPlayerCheckpoint(i,1551.6914,-2486.2825,13.5547,8.0); //cp for right side
            PlayerInfo[i][StreetRace] = 4;
        }