how to next checkpoint
#5

Hehe the same problem was with me when player enters the 1st checkpoint you declare cpd[playerid] = 2;
And below it you check for cpd[playerid] = 2
PHP код:
if(cpd[playerid] == 1){ 
        
cpd[playerid] = 2//cpd now is 2
        
SetPlayerCheckpoint(playerid,2081.1523,-1831.5197,13.1621,5.0); 
    } 
    if(
cpd[playerid] == 2//Here you check for cpd 2 and you have increased it already. And it will keep contiuing until the last one

        
SetPlayerCheckpoint(playerid,2108.8325,-1753.1776,13.1821,5.0); 
        
cpd[playerid] = 3
    } 
Solution: Start not in ascending but descending order. The if and else if will also work.
Reply


Messages In This Thread
how to next checkpoint - by Jihanz - 26.03.2017, 06:00
Re: how to next checkpoint - by AndySedeyn - 26.03.2017, 06:04
Re: how to next checkpoint - by Jihanz - 26.03.2017, 06:12
Re: how to next checkpoint - by AndySedeyn - 26.03.2017, 06:20
Re: how to next checkpoint - by coool - 26.03.2017, 06:34

Forum Jump:


Users browsing this thread: 1 Guest(s)