[Ajuda] oque й que esta errado aqui
#2

PHP код:

public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
 if(
dialogid == REGISTRO)
    {
        if(
response)
        {
            if(!
strlen(inputtext))
            {
                new 
Nome[MAX_PLAYER_NAME];
                
GetPlayerName(playeridNomesizeof(Nome));
                new 
String[128];
                
format(Stringsizeof(String), "Olб %s vocк ainda nгo tem uma conta, \nDigite uma senha para continuar:"Nome);
                
ShowPlayerDialog(playeridREGISTRODIALOG_STYLE_INPUT"Registro"String"Registrar""Cancelar");
                
SendClientMessage(playerid,0x1E90FFAA,"Senha invalida, digite uma senha vбlida");
                return 
1;
            }
            new 
Nome[MAX_PLAYER_NAME];
            
GetPlayerName(playeridNomesizeof(Nome));
            new 
String[128];
            
format(Stringsizeof(String), CONTASNome);
            
DOF2_CreateFile(String);
            new 
str[32];
            
DOF2_SetString(String,"RegisterDate",str);
            
format(Stringsizeof(String),"SERVER: Vocк criou a conta \"%s\" com a senha \"%s\". Nгo se esqueзa da sua senha. ***",PlayerName(playerid), inputtext);
            
SendClientMessage(playerid,-1String);
            
DOF2_SaveFile();
            
logado[playerid] = 1;
            
ShowPlayerDialog(playeridDIALOG_PAISDIALOG_STYLE_LIST"Vida do Crime  - INICIO""Escolher Organizaзгo""Selecionar""Voltar");
            return 
1;
      
        }
    }
    if(
dialogid == LOGIN)
    {
        if(
response)
        {
            if(!
strlen(inputtext))
            {
                new 
Nome[MAX_PLAYER_NAME];
                
GetPlayerName(playeridNomesizeof(Nome));
                new 
String[128];
                
format(Stringsizeof(String), "Olб %s vocк ja й registrado, \nDigite sua senha:"Nome);
                
ShowPlayerDialog(playeridLOGINDIALOG_STYLE_INPUT"Registro"String"Logar""Cancelar");
                
SendClientMessage(playerid,0x1E90FFAA,"Senha incorreta digite-a novamente");
                return 
1;
            }
            new 
Nome[MAX_PLAYER_NAME];
            
GetPlayerName(playeridNomesizeof(Nome));
            new 
String[128];
            
format(Stringsizeof(String), CONTASNome);
      
//          return 1; // porque retornando ? existe mais codigo pra baixo . 
    //        } // olhe bem , chave fechando oque ??
            
else
            {
                
SendClientMessage(playerid,0x00FF00AA,"Senha incorreta digite-a novamente");
                new 
String[128];
                new 
Nome[41];
                
format(Stringsizeof(String), "Vocк erro sua senha %s! \nDigite-a novamente!"Nome);
                
ShowPlayerDialog(playeridLOGINDIALOG_STYLE_INPUT"Login"String"Logar""Cancelar");
            }
            return 
1;
        }
        else 
// << Pra que este else ? estб contrariando oque ?
        
{
            
SendClientMessage(playerid0xFF0000AA"Vocк nгo quis se logar, por este motivo serб Kickado");
            
Kick(playerid);
            return 
1;
        }
 return 
1;

Reply


Messages In This Thread
oque й que esta errado aqui - by _Play_ - 06.07.2014, 03:45
Re: oque й que esta errado aqui - by darkxdll - 06.07.2014, 03:47
Re: oque й que esta errado aqui - by _Play_ - 06.07.2014, 04:09
Re: oque й que esta errado aqui - by darkxdll - 06.07.2014, 04:14
Re: oque й que esta errado aqui - by Ts3 - 06.07.2014, 04:17
Re: oque й que esta errado aqui - by best95 - 06.07.2014, 04:18
Re: oque й que esta errado aqui - by darkxdll - 06.07.2014, 04:20
Re: oque й que esta errado aqui - by _Play_ - 06.07.2014, 04:51

Forum Jump:


Users browsing this thread: 2 Guest(s)