SA-MP Forums Archive
[Ajuda] Pawn Parou de Funcionar - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Pawn Parou de Funcionar (/showthread.php?tid=453872)



Pawn Parou de Funcionar - MoonRey - 26.07.2013

Quando coloco um cуdigo de portгo automatico que achei aqui no forum e tento compilar, aparece que o Pawn Parou de Funcionar.
Isso acontece quando coloco esse cуdigo:

pawn Код:
if (strcmp("/portao", cmdtext, true, 10) == 0)
    {
    if(IsPlayerInRangeOfPoint(playerid,7.0, 1, 2, 3))
    {
    SendClientMessage(playerid, -1, "Portгo Aberto, irб Fechar em 5 Segundos");
    MoveObject(Portao, 1, 2, 2, 1.0, 0.0, 0.0, 0.0);
    SetTimer("ClosePortao", 5000, false);
    }
    return 1;
    }
    return 0;
    }
    }
Se alguem puder me ajudar, agradeзo muito.


Re: Pawn Parou de Funcionar - Coe1 - 26.07.2013

pawn Код:
if (strcmp("/portao", cmdtext, true, 10) == 0)
{
   
    if(IsPlayerInRangeOfPoint(playerid,7.0, 1, 2, 3))
    {
       
        SendClientMessage(playerid, -1, "Portгo Aberto, irб Fechar em 5 Segundos");
        MoveObject(Portao, 1, 2, 2, 1.0, 0.0, 0.0, 0.0);
        SetTimer("ClosePortao", 5000, false);
    }
    return 1;
}
return 0;
Cuidado com os " { " " } " vocк colocou dois " } " que nгo estavam sendo abertos.. '-'


Re : Pawn Parou de Funcionar - MoonRey - 26.07.2013

Muito obrigado :3 Eu peguei ele na net, e pensei que era algum erro no pawn, agora jб sei que й chaves heahuehueha valew