SA-MP Forums Archive
[Ajuda] Sistema de Registro bugado? - 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] Sistema de Registro bugado? (/showthread.php?tid=458480)



Sistema de Registro bugado? - 8235Danilo - 16.08.2013

Galera, no meu sistema de registro fizz o seguinte:

pawn Код:
if(response)
        {
            new String[100];
            if ( !strcmp ( inputtext,DOF2::GetString(String, "Senha"),  false))
            {
                SendClientMessage(playerid, COR_LARANJA, "Logado com sucesso!");
                return 1;
            }
            else
            {
                SendClientMessage(playerid, COR_VERMELHO, "|ERRO|Senha incorreta!");
                LogarPlayer(playerid);
            }
        }
        else
        {
            SendClientMessage(playerid, COR_VERMELHO, "|INFO|Voce foi kickado||Motivo:Nao se logou!");
            Kick(playerid);
        }
mas nao importa a senha que eu coloco, ele aceita.

EX: minha senha = '123'

eu coloco no dialog de login '3423421214324' e ele aceita!

oque faco?


Re: Sistema de Registro bugado? - @Vegas - 16.08.2013

pawn Код:
if(response)
        {
            new String[100];
            if (strcmp ( inputtext,DOF2::GetString(String, "Senha"),  false))
            {
                SendClientMessage(playerid, COR_LARANJA, "Logado com sucesso!");
                return 1;
            }
            else
            {
                SendClientMessage(playerid, COR_VERMELHO, "|ERRO|Senha incorreta!");
                LogarPlayer(playerid);
            }
        }
        else
        {
            SendClientMessage(playerid, COR_VERMELHO, "|INFO|Voce foi kickado||Motivo:Nao se logou!");
            Kick(playerid);
        }
Tenta


Re: Sistema de Registro bugado? - LeoHunter - 16.08.2013

Se voce alterou seu nivel de admin pelo SeuNome.ini pode ser que sua senha la esteja: 0


Re: Sistema de Registro bugado? - DannielCooper - 17.08.2013

Tenta ae.

pawn Код:
if(response)
        {
            new String[100];
            if (strcmp ( inputtext,DOF2::GetString(String, "Senha"),  false))
            {
                SendClientMessage(playerid, COR_LARANJA, "Logado com sucesso!");
                 LogarPlayer(playerid);
            }
            else
            {
                SendClientMessage(playerid, COR_VERMELHO, "|ERRO|Senha incorreta!");
                return 1;
            }
        }
        else
        {
            SendClientMessage(playerid, COR_VERMELHO, "|INFO|Voce foi kickado||Motivo:Nao se logou!");
            Kick(playerid);
        }
@Off

Isto estuprou sua indentaзгo hein amigo.