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