Cp error
#1

Код:
 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..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)