[AJUDA] Login
#1

pawn Код:
switch(dialogid)
    {
        case 12:
        {
            if(response)
            {
                new contas[32];
                format(contas, sizeof(contas), "Ban/%s", PegarNome(playerid));
                if(strcmp(inputtext, DOF2_GetString(contas, "Senha")))
                {
                    Carregar(playerid);
                    SpawnPlayer(playerid);
                }
                else if(ErroSenha[playerid] < 4)
                {
                    ErroSenha[playerid] ++;
                    ShowPlayerDialog(playerid, 12, DIALOG_STYLE_PASSWORD,"Logar","Senha Errada Caso erre 5 Vezes Levara Ban","Logar","Cancelar");
                    {
                        if(strcmp(inputtext, DOF2_GetString(contas, "Senha")))
                        {
                            Carregar(playerid);
                            SpawnPlayer(playerid);
                        }
                    }
                }
                else if(ErroSenha[playerid] == 4)
                {
                    new str[64];
                    new string2 [256];
                    new string3 [64];
                    new conta[32];
                    new h, m, s, a, ms, d;
                    format(string2, sizeof(string2),"%s Vocк foi Banido do Make Your Life\n", PegarNome(playerid));
                    strcat(str, string2);
                    strcat(str, "Por errar a Senha 5 vezes para rever Banimento\n ");
                    gettime(h, m, s);
                    getdate(a, ms, d);
                    format(string2, sizeof(string2),"Horario do Banimento: %d/%d/%d бs %d:%d:%d\n", a,ms,d,h,m,s);
                    strcat(str, string3);
                    strcat(str, "Tire Print de Seu Banimento e Poste Forum: http://makeyourlifebr.forumeiros.com/");
                    ShowPlayerDialog(playerid, 18, MSGBOX, "Banimento de Senha", str, "OK", "Cancelar");
                    format(contas, sizeof(conta), "Ban/Erro-Senha/%s", PegarNome(playerid));
                    DOF2_SetBool(conta,"Ban",JogadorInfo[id][pBanido] = true);
                    DOF2_SaveFile();
                    Kick(playerid);
                }
            }
           
            if(!response)
            {
                SendClientMessage(playerid, 0xFFAB10AA, "Vocк foi Kickado por nao se Logar");
                Kick(playerid);
            }
        }
    }
bom sempre qui eu erro a senha mesmo eu acertando depois aparece que eu errei alguem poderia me ajudar?
Reply


Messages In This Thread
[AJUDA] Login - by histire - 30.03.2012, 18:29
Re: [AJUDA] Login - by VivianeDejoss - 30.03.2012, 18:40
Re: [AJUDA] Login - by histire - 30.03.2012, 18:46
Re: [AJUDA] Login - by VivianeDejoss - 30.03.2012, 19:03
Re: [AJUDA] Login - by histire - 30.03.2012, 19:11
Re: [AJUDA] Login - by Falcon. - 30.03.2012, 19:15
Re: [AJUDA] Login - by Hardware - 30.03.2012, 19:17
Re: [AJUDA] Login - by histire - 30.03.2012, 19:19

Forum Jump:


Users browsing this thread: 1 Guest(s)