SA-MP Forums Archive
Cp error - 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: Cp error (/showthread.php?tid=486149)



Cp error - sn0p - 07.01.2014

Код:
 if(inkasatoriai[playerid][1] == 1)
{
    cpink[playerid] =SetTimerEx("tinkasatoriai", 5000, true, "i", playerid);
    DisablePlayerCheckpoint(playerid);
    TogglePlayerControllable(playerid,false);
    InfoBoxForPlayer(playerid, "~y~Kraunami pinigai i masina");
}
else if(inkasatoriai[playerid][2] == 1)
{
    playerDB[playerid][alga]+=20;
    InfoBoxForPlayer(playerid, "~y~Gavote 20lt i algos fonda");
    DisablePlayerCheckpoint(playerid);
    inkasatoriai[playerid][3] = SetPlayerCheckpoint(playerid, 1454.9468,-1752.2150,13.5469, 3.0);
}
else if(inkasatoriai[playerid][3] == 1)
{
    inkasatoriai[playerid][4] = SetPlayerCheckpoint(playerid, 1290.1588,341.9316,19.5547, 3.0);
    inkasatoriai[playerid][3]=-1;
    playerDB[playerid][alga]+=20;
    InfoBoxForPlayer(playerid, "~y~Gavote 20lt i algos fonda");
    DisablePlayerCheckpoint(playerid);
}
else if(inkasatoriai[playerid][4] == 1)
{
    playerDB[playerid][alga]+=20;
    InfoBoxForPlayer(playerid, "~y~Gavote 20lt i algos fonda");
    DisablePlayerCheckpoint(playerid);
    inkasatoriai[playerid][5] = SetPlayerCheckpoint(playerid, 1454.9468,-1752.2150,13.5469, 3.0);
    inkasatoriai[playerid][4]=-1;
}
else if(inkasatoriai[playerid][5] == 1)
{
    playerDB[playerid][alga]+=20;
    InfoBoxForPlayer(playerid, "~y~Vaziuok pasikrauti");
    DisablePlayerCheckpoint(playerid);
    inkasatoriai[playerid][5]=-1;
 return 1;
}
When i enter to the second cp it doesnt sent to the third it always be on second..