[Ajuda] Sistema de Login
#9

Quote:
Originally Posted by PT
Посмотреть сообщение
pawn Код:
if(dialogid == DIALOG_LOGIN)    {        if(response)        {            if(!strlen(inputtext))            {                format(String, sizeof(String), "{F1FC14}Conta: %s\n{28FC14}Registrada.\n\n{14F1FC}Digite sua senha para Logar", Nome(playerid));                ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "{FC14E9}Logando...", String, "Logar", "Sair");                SendClientMessage(playerid, VERMELHO, "Digite sua senha para se logar ¬¬");                return 1;            }            format(StringContas, sizeof(StringContas), "LLADMIN/Contas/%s.txt", Nome(playerid));            if(strcmp(inputtext, DOF2_GetString(StringContas, "Senha"), false) == 0)            {                format(String, sizeof(String), "{F1FC14}Conta: %s\n{28FC14}Registrada.\n\n{14F1FC}Digite sua senha para Logar", Nome(playerid));                ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "{FC14E9}Logando...", String, "Logar", "Sair");                SendClientMessage(playerid, VERMELHO_CLARO, "Senha incorreta!");                return 1;            }
Pronto acho que assim ja resolve
Quote:
Originally Posted by Devasting
Посмотреть сообщение
pawn Код:
C:\Users\Regio.Regio-PC\Desktop\lladmin.pwn(1000) : error 075: input line too long (after substitutions)
C:\Users\Regio.Regio-PC\Desktop\lladmin.pwn(1001) : error 075: input line too long (after substitutions)
C:\Users\Regio.Regio-PC\Desktop\lladmin.pwn(1002) : warning 217: loose indentation
C:\Users\Regio.Regio-PC\Desktop\lladmin.pwn(1002) : error 017: undefined symbol "VERME"
C:\Users\Regio.Regio-PC\Desktop\lladmin.pwn(1003) : warning 217: loose indentation
C:\Users\Regio.Regio-PC\Desktop\lladmin.pwn(1003) : error 017: undefined symbol "LHO_CLARO"
C:\Users\Regio.Regio-PC\Desktop\lladmin.pwn(1003) : error 029: invalid expression, assumed zero
C:\Users\Regio.Regio-PC\Desktop\lladmin.pwn(1003) : warning 215: expression has no effect
C:\Users\Regio.Regio-PC\Desktop\lladmin.pwn(1059) : warning 217: loose indentation
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
a linha ta muito grande, basta identar o codigo que o pt postou...

pawn Код:
if(dialogid == DIALOG_LOGIN)    
{        
   if(response)        
   {            
      if(!strlen(inputtext))            
      {                
         format(String, sizeof(String), "{F1FC14}Conta: %s\n{28FC14}Registrada.\n\n{14F1FC}Digite sua senha para Logar", Nome(playerid));                
         ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "{FC14E9}Logando...", String, "Logar", "Sair");                
         SendClientMessage(playerid, VERMELHO, "Digite sua senha para se logar ¬¬");                
         return 1;
      }            
      format(StringContas, sizeof(StringContas), "LLADMIN/Contas/%s.txt", Nome(playerid));
      if(strcmp(inputtext, DOF2_GetString(StringContas, "Senha"), false) == 0)            
      {
          format(String, sizeof(String), "{F1FC14}Conta: %s\n{28FC14}Registrada.\n\n{14F1FC}Digite sua senha para Logar", Nome(playerid));                
          ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "{FC14E9}Logando...", String, "Logar", "Sair");                
          SendClientMessage(playerid, VERMELHO_CLARO, "Senha incorreta!");
          return 1;            
      }
Reply


Messages In This Thread
Sistema de Login - by Devasting - 08.06.2014, 21:34
Re: Sistema de Login - by MultiKill - 08.06.2014, 21:38
Re: Sistema de Login - by PT - 08.06.2014, 21:39
Re: Sistema de Login - by Devasting - 08.06.2014, 23:35
Re: Sistema de Login - by Devasting - 09.06.2014, 03:02
Re: Sistema de Login - by MultiKill - 09.06.2014, 03:07
Re: Sistema de Login - by PT - 09.06.2014, 08:32
Re: Sistema de Login - by Devasting - 09.06.2014, 20:30
Re: Sistema de Login - by DoN_ReNaTo - 10.06.2014, 00:09
Re: Sistema de Login - by Devasting - 10.06.2014, 00:21

Forum Jump:


Users browsing this thread: 5 Guest(s)