26.03.2017, 06:34
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
Solution: Start not in ascending but descending order. The if and else if will also work.
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;
}