SA-MP Forums Archive
[Ajuda] Dialog - 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] Dialog (/showthread.php?tid=572055)



Dialog - Thompsoon - 24.04.2015

A minha Dialog de Login sу pega 4 linhas como eu faзo para aumentar ?


Re: Dialog - #Luca[S]. - 24.04.2015

Mande o cуdigo, dб dialog. Provavelmente deve ser uma variavel com poucas cйlulas.


Re: Dialog - Thompsoon - 24.04.2015

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;
        }
    }



Re: Dialog - JkS - 25.04.2015

PHP код:
 if(dialogid == DIALOG_LOGIN)
    {
        if(
response)
        {
            if(!
strlen(inputtext))
            {
                new 
Nome[MAX_PLAYER_NAME];
                
GetPlayerName(playeridNomesizeof(Nome));
                new 
String[128];
                
format(Stringsizeof(String),TXT_LOGINNome);
                
ShowPlayerDialog(playeridDIALOG_LOGIN3"Registro"String"Logar""Cancelar");
                
SendClientMessage(playerid,0x1E90FFAA,"Senha Incorreta !");
                return 
1;
            }
            new 
Nome[MAX_PLAYER_NAME];
            
GetPlayerName(playeridNomesizeof(Nome));
            new 
String[1000];
            
format(Stringsizeof(String), CONTASNome);
            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(Stringsizeof(String), TXT_RLOGINNome);
                
ShowPlayerDialog(playeridDIALOG_LOGIN3"Registro"String"Logar""Cancelar");
            }
            return 
1;
        }
        else
        {
            
SendClientMessage(playerid0xFF0000AA"Vocк foi Kickado porque nгo querer logar");
            
Kick(playerid);
            return 
1;
        }
    } 
ou

PHP код:
 if(dialogid == DIALOG_LOGIN)
    {
        if(
response)
        {
            if(!
strlen(inputtext))
            {
                new 
Nome[MAX_PLAYER_NAME];
                
GetPlayerName(playeridNomesizeof(Nome));
                new 
String[1000];
                
format(Stringsizeof(String),TXT_LOGINNome);
                
ShowPlayerDialog(playeridDIALOG_LOGIN3"Registro"String"Logar""Cancelar");
                
SendClientMessage(playerid,0x1E90FFAA,"Senha Incorreta !");
                return 
1;
            }
            new 
Nome[MAX_PLAYER_NAME];
            
GetPlayerName(playeridNomesizeof(Nome));
            new 
String[2000];
            
format(Stringsizeof(String), CONTASNome);
            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(Stringsizeof(String), TXT_RLOGINNome);
                
ShowPlayerDialog(playeridDIALOG_LOGIN3"Registro"String"Logar""Cancelar");
            }
            return 
1;
        }
        else
        {
            
SendClientMessage(playerid0xFF0000AA"Vocк foi Kickado porque nгo querer logar");
            
Kick(playerid);
            return 
1;
        }
    }