SA-MP Forums Archive
[Ajuda] SERVER: Uknown Command - 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] SERVER: Uknown Command (/showthread.php?tid=472286)



SERVER: Uknown Command - N3XTMapper - 27.10.2013

Ola Galera, eu preciso da ajuda de voces, eu tenho um GameMode aqui eu eu sabia fazer aquelas mensagens tipo :


" O COMANDO NAO EXISTE, POR FAVOR USE /COMANDOS E VEJA OS COMANDOS DO SERVIDOR "

Mais agora eu esqueci como os faзo, alguem ae me ajuda?


Re: SERVER: Uknown Command - zSuYaNw - 27.10.2013

NO ъltimo return da callback OnPlayerCommandText return 0; troque por
pawn Код:
return SendClientMessage(playerid, -1, "Comando invбlido champz");

Caso nгo usar nenhum processador de comandos, й claro..


Caso usar, poste-o aqui.


Re: SERVER: Uknown Command - N3XTMapper - 27.10.2013

Minhas Includes ae

Quote:

#include < a_samp >
#include < float >
#include < core >
#include < Dini >
#include < dudb >
#include < dutils >
#include < cpstream >

@EDIT

Vlw ae


Re: SERVER: Uknown Command - CharlieBrown - 27.10.2013

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
    {
        new rStr[260];
        format(rStr, sizeof(rStr), "O comando %s nгo existe.", cmdtext);
        SendClientMessage(playerid, 0x33AA33AA, rStr);
        return true;
    }
    return true;
}



Re: SERVER: Uknown Command - PT - 27.10.2013

Quote:
Originally Posted by CharlieBrown
Посмотреть сообщение
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
    {
        new rStr[260];
        format(rStr, sizeof(rStr), "O comando %s nгo existe.", cmdtext);
        SendClientMessage(playerid, 0x33AA33AA, rStr);
        return true;
    }
    return true;
}
ele n usa nenhum processador de comandos

usa strcmp


faz o que ele disse

Quote:
Originally Posted by zSuYaNw
Посмотреть сообщение
NO ъltimo return da callback OnPlayerCommandText return 0; troque por
pawn Код:
return SendClientMessage(playerid, -1, "Comando invбlido champz");

Caso nгo usar nenhum processador de comandos, й claro..


Caso usar, poste-o aqui.



Re: SERVER: Uknown Command - CLANdok - 27.10.2013

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
     if(!success)
     {
            SendClientMessage(playerid, 0xFF0000FF, "SUA MENSAGEM!");
            return 1;
     }
     return 1;
}



Re: SERVER: Uknown Command - SkullFire - 27.10.2013

Usar o search faz bem pra saъde .