[Ajuda] SERVER: Uknown Command
#5

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.
Reply


Messages In This Thread
SERVER: Uknown Command - by N3XTMapper - 27.10.2013, 19:11
Re: SERVER: Uknown Command - by zSuYaNw - 27.10.2013, 19:13
Re: SERVER: Uknown Command - by N3XTMapper - 27.10.2013, 19:18
Re: SERVER: Uknown Command - by CharlieBrown - 27.10.2013, 19:18
Re: SERVER: Uknown Command - by PT - 27.10.2013, 19:20
Re: SERVER: Uknown Command - by CLANdok - 27.10.2013, 19:34
Re: SERVER: Uknown Command - by SkullFire - 27.10.2013, 21:12

Forum Jump:


Users browsing this thread: 3 Guest(s)