Portal SAMP
[Ajuda] Conflito entres os CheckPoints - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Ajuda] Conflito entres os CheckPoints (/showthread.php?tid=655)



Conflito entres os CheckPoints - LeleziiN - 16/01/2021

Bom como o titulo mesmo já diz estou com conflito entres os CPs da loja de Utilitarios e os CPs do sistema que estou desenvolvendo. Bem quando eu vou para os CheckPoints do Sistema, da um conflito e aparece nele o sistema da loja de utilitarios.

Poderiam mim ajudar pfvr?

O conflito é com todos os CPs do GM

Parte da Dinâmina da Prof:
Código PHP:
switch(CheckPoint[playerid])
    {
          case 1:
        {
             ApplyAnimation(playerid"BOMBER""BOM_Plant",  1.0,1,0,0,0,0);
            //Time[playerid] = SetTimerEx("Animation", 3000, false, "i",playerid);
            ColherTime[playerid] = SetTimerEx("Animation"3000false"i",playerid);
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,CordenadasCheckPoints[1][0], CordenadasCheckPoints[1][1], CordenadasCheckPoints[1][2],3.0);
            CheckPoint[playerid] = 2;
        }
        case 2:
        {
            ApplyAnimation(playerid"BOMBER""BOM_Plant",  1.0,1,0,0,0,0);
            //Time[playerid] = SetTimerEx("Animation", 3000, false, "i",playerid);
            ColherTime[playerid] = SetTimerEx("Animation"3000false"i",playerid);
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playeridCordenadasCheckPoints[2][0], CordenadasCheckPoints[2][1], CordenadasCheckPoints[2][2],3.0);
            CheckPoint[playerid] = 3;
        }
        case 3:
        {
            ApplyAnimation(playerid"BOMBER""BOM_Plant",  1.0,1,0,0,0,0);
            //Time[playerid] = SetTimerEx("Animation", 3000, false, "i",playerid);
            ColherTime[playerid] = SetTimerEx("Animation"3000false"i",playerid);
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playeridCordenadasCheckPoints[3][0], CordenadasCheckPoints[3][1], CordenadasCheckPoints[3][2],3.0);
            CheckPoint[playerid] = 4;
        }
        case 4:
        {
             ApplyAnimation(playerid"BOMBER""BOM_Plant",  1.0,1,0,0,0,0);
            //Time[playerid] = SetTimerEx("Animation", 3000, false, "i",playerid);
            ColherTime[playerid] = SetTimerEx("Animation"3000false"i",playerid);
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,CordenadasCheckPoints[4][0], CordenadasCheckPoints[4][1], CordenadasCheckPoints[4][2],3.0);
            CheckPoint[playerid] = 5;
        }
        case 5:
        {
             ApplyAnimation(playerid"BOMBER""BOM_Plant",  1.0,1,0,0,0,0);
            //Time[playerid] = SetTimerEx("Animation", 3000, false, "i",playerid);
            ColherTime[playerid] = SetTimerEx("Animation"3000false"i",playerid);
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,CordenadasCheckPoints[5][0], CordenadasCheckPoints[5][1], CordenadasCheckPoints[5][2],3.0);
            CheckPoint[playerid] = 6;
        }
        case 6:
        {
             ApplyAnimation(playerid"BOMBER""BOM_Plant",  1.0,1,0,0,0,0);
            //Time[playerid] = SetTimerEx("Animation", 3000, false, "i",playerid);
            ColherTime[playerid] = SetTimerEx("Animation"3000false"i",playerid);
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,CordenadasCheckPoints[6][0], CordenadasCheckPoints[6][1], CordenadasCheckPoints[6][2],3.0);
            CheckPoint[playerid] = 7;
        }
        case 7:
        {
             ApplyAnimation(playerid"BOMBER""BOM_Plant",  1.0,1,0,0,0,0);
            //Time[playerid] = SetTimerEx("Animation", 3000, false, "i",playerid);
            ColherTime[playerid] = SetTimerEx("Animation"3000false"i",playerid);
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,CordenadasCheckPoints[7][0], CordenadasCheckPoints[7][1], CordenadasCheckPoints[7][2],3.0);
            CheckPoint[playerid] = 8;
        }
        case 8:
        {
             ApplyAnimation(playerid"BOMBER""BOM_Plant",  1.0,1,0,0,0,0);
            //Time[playerid] = SetTimerEx("Animation", 3000, false, "i",playerid);
            ColherTime[playerid] = SetTimerEx("Animation"3000false"i",playerid);
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,CordenadasCheckPoints[8][0], CordenadasCheckPoints[8][1], CordenadasCheckPoints[8][2],3.0);
            CheckPoint[playerid] = 9;
        }
        case 9:
        {
            ApplyAnimation(playerid"BOMBER""BOM_Plant",  1.0,1,0,0,0,0);
            //Time[playerid] = SetTimerEx("Animation", 3000, false, "i",playerid);
            ColherTime[playerid] = SetTimerEx("Animation"3000false"i",playerid);
            DisablePlayerCheckpoint(playerid);
            //SendClientMessage(playerid, -1, "Voce terminou a platacao, espera ela crescer e depois colha ela");
            SendClientMessage(playerid, -1,"{1e90ff}| INFO | {FFFFFF}Você plantou em todos os locais. Aguarde 1 minuto para colher!");
            SendClientMessage(playerid, -1,"{1e90ff}| INFO | {FFFFFF}Localização apagada com sucesso!");
            TimerPlantando[playerid] = SetTimerEx("Plantando"10000false"i",playerid);
            Esta_Plantando[playerid] = false;
        }
    



RE: Conflito entres os CheckPoints - Smyle - 17/01/2021

Manda o OnPlayerEnterCheckpoint ou a Callback que você tá usando de forma completa.


RE: Conflito entres os CheckPoints - LeleziiN - 17/01/2021

Tá ir a public
https://pastebin.com/2LXZKX49


RE: Conflito entres os CheckPoints - LeleziiN - 18/01/2021

Alguém poderia mim ajuda pfvr