SA-MP Forums Archive
[Ajuda] Ajuda com warning. - 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] Ajuda com warning. (/showthread.php?tid=408152)



Ajuda com warning. - davi54723 - 17.01.2013

C:\ARQUIVOS MORTO\[CSMBR]-Servidor [GRPAe] - Treino\gamemodes\GM2.pwn(1906) : warning 209: function "cmd_Chave01" should return a value
C:\ARQUIVOS MORTO\[CSMBR]-Servidor [GRPAe] - Treino\gamemodes\GM2.pwn(1916) : warning 209: function "cmd_Chave02" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.


pawn Код:
CMD:Chave01(playerid)
    if(pDados[playerid][Organizacao] == POLICIAM)
{
    MoveObject(MoverP1 , 1549.1999500,-1476.9000200,2806.3999000, 3); // Cordenada Dele Aberto
    SendClientMessage(playerid, -1, "Vocк abriu a porta da prisгo. (001)"); // ( Mensagem ao Digitar )
    SetTimer("Chave01", 5000, false); // Tempo para que ele suba denovo ( 5 SEG. )
    return 1;
}

    CMD:Chave02(playerid)
    if(pDados[playerid][Organizacao] == POLICIAM)
{
    MoveObject(MoverP2 , 1549.1999500,-1472.9000200,2806.3999000, 3); // Cordenada Dele Aberto
    SendClientMessage(playerid, -1, "Vocк abriu a porta da prisгo. (002)"); // ( Mensagem ao Digitar )
    SetTimer("Chave02", 5000, false); // Tempo para que ele suba denovo ( 5 SEG. )
    return 1;
}



Re: Ajuda com warning. - jibileu - 17.01.2013

pawn Код:
CMD:Chave01(playerid)
{
    if(pDados[playerid][Organizacao] == POLICIAM)
    {
        MoveObject(MoverP1 , 1549.1999500,-1476.9000200,2806.3999000, 3); // Cordenada Dele Aberto
        SendClientMessage(playerid, -1, "Vocк abriu a porta da prisгo. (001)"); // ( Mensagem ao Digitar )
        SetTimer("Chave01", 5000, false); // Tempo para que ele suba denovo ( 5 SEG. )
    }
    return 1;
}

CMD:Chave02(playerid)
{
    if(pDados[playerid][Organizacao] == POLICIAM)
    {
        MoveObject(MoverP2 , 1549.1999500,-1472.9000200,2806.3999000, 3); // Cordenada Dele Aberto
        SendClientMessage(playerid, -1, "Vocк abriu a porta da prisгo. (002)"); // ( Mensagem ao Digitar )
        SetTimer("Chave02", 5000, false); // Tempo para que ele suba denovo ( 5 SEG. )
    }
    return 1;
}