[Ajuda] Dialog
#1

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

Mande o cуdigo, dб dialog. Provavelmente deve ser uma variavel com poucas cйlulas.
Reply
#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
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)