[Ajuda] Dialog
#3

pawn Код:
if(dialogid == DIALOG_LOGIN)
    {
        if(response)
        {
            if(!strlen(inputtext))
            {
                new Nome[MAX_PLAYER_NAME];
                GetPlayerName(playerid, Nome, sizeof(Nome));
                new String[1000];
                format(String, sizeof(String),TXT_LOGIN, Nome);
                ShowPlayerDialog(playerid, DIALOG_LOGIN, 3, "Registro", String, "Logar", "Cancelar");
                SendClientMessage(playerid,0x1E90FFAA,"Senha Incorreta !");
                return 1;
            }
            new Nome[MAX_PLAYER_NAME];
            GetPlayerName(playerid, Nome, sizeof(Nome));
            new String[1000];
            format(String, sizeof(String), CONTAS, Nome);
            if(!strcmp(inputtext,dini_Get(String,"Senha"),false))
            {
                CarregarPlayer(playerid);
                TotalLogou[playerid]++;
                SpawnPlayer(playerid);
                return 1;
            }
            else
            {
                SendClientMessage(playerid,0x00FF00AA,"Senha incorreta digite-a novamente");
                format(String, sizeof(String), TXT_RLOGIN, Nome);
                ShowPlayerDialog(playerid, DIALOG_LOGIN, 3, "Registro", String, "Logar", "Cancelar");
            }
            return 1;
        }
        else
        {
            SendClientMessage(playerid, 0xFF0000AA, "Vocк foi Kickado porque nгo querer logar");
            Kick(playerid);
            return 1;
        }
    }
Reply


Messages In This Thread
Dialog - by Thompsoon - 24.04.2015, 22:54
Re: Dialog - by #Luca[S]. - 24.04.2015, 22:55
Re: Dialog - by Thompsoon - 24.04.2015, 23:13
Re: Dialog - by JkS - 25.04.2015, 01:44

Forum Jump:


Users browsing this thread: 1 Guest(s)