SA-MP Forums Archive
[Ajuda] Bug - Comando nao й executado - 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] Bug - Comando nao й executado (/showthread.php?tid=498826)



- joaovictor098 - 05.03.2014

Olб galera, peзo a vocкs humildemente ajuda, pois estou com um bug no sistema de registrar do meu GM.
No jogo aparece 'Esse comando nгo existe' quando eu digito /registrar e /logar que й o comando de registrar(opcional) em dof2.

Код:
    if (strcmp(cmd, "/registrar",true) == 0)
    {
       if(DOF2_FileExists(ReturnFileUser(playerid))) return SendClientMessage(playerid,0xFF6C34FF,"Essa conta jб estб registrada.");
       new string[115];
       format(string,sizeof(string),"Seu nome: %s\nDeseja mesmo se registrar?", PlayerName(playerid));
       ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_INPUT,"{084F14}[VL] {FFFFFF}- Registro", string, "Sim","Nao");
       return 1;
    }
    if(strcmp(cmd,"/logar", true) == 0)
    {
       if(!DOF2_FileExists(ReturnFileUser(playerid))) return SendClientMessage(playerid,0xFF6C34FF,"Essa conta nгo estб registrada. Se registre primeiro usando /registrar.");
       if(Conectado[playerid] == true) return SendClientMessage(playerid,-1,"Vocк jб estб logado!");
       ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"{084F14}[VD] {FFFFFF}- Login", "Para logar digite sua senha abaixo:", "Logar","Cancelar");
       return 1;
    }
Me ajudem por favor !!

Atualizaзгo: coloquei outro comando(dialog tm) tbm nao ta funcionando :@

Aqui os define se alguem precisar:
#define PCC 2
#define Aztecas 3
#define Ballas 4
#define Vagos 5
#define Policia 6
#define FileUsers "Contas/%s.ini"
#define DIALOG_REGISTRO 1
#define DIALOG_LOGIN 2
#define DIALOG_MUDAR_NICK 3
#define DIALOG_MUDAR_SENHA 4
#define vmenu 23

Ngm vai me ajudar nгo?
Includes e plugins todos atualizados


Re: Bug - Comando nao й executado - zG - 05.03.2014

denunciado triple post


Re: Bug - Comando nao й executado - joaovictor098 - 05.03.2014

pq inves de denunciar tu nao ajuda? so novo no forum cara '-'


Re: Bug - Comando nao й executado - rjjj - 05.03.2014

Altere cmd para cmdtext nos comandos e mova-os para o comeзo do OnPlayerCommandText, se nгo estiverem .



Caso isso nгo resolva o problema, coloque esta linha junto com os comandos, tente fazer a compilaзгo e poste os resultados:


pawn Код:
#error "Ok !"


Espero ter ajudado .


Re: Bug - Comando nao й executado - joaovictor098 - 06.03.2014

Quote:
Originally Posted by rjjj
Посмотреть сообщение
Altere cmd para cmdtext nos comandos e mova-os para o comeзo do OnPlayerCommandText, se nгo estiverem .



Caso isso nгo resolva o problema, coloque esta linha junto com os comandos, tente fazer a compilaзгo e poste os resultados:


pawn Код:
#error "Ok !"


Espero ter ajudado .
Vlw agora funcionoo