Untitled.pwn(923) : error 017: undefined symbol "encrypt"
Untitled.pwn(953) : error 017: undefined symbol "encrypt"
Untitled.pwn(953) : error 029: invalid expression, assumed zero
Untitled.pwn(953) : warning 215: expression has no effect
Untitled.pwn(953) : error 001: expected token: ";", but found ")"
Untitled.pwn(953) : fatal error 107: too many error messages on one line
if(dialogid == REGISTRO)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
format(file, sizeof(file), PASTA_CONTAS, aname);
if(response == 1)
{
if(strlen(inputtext) < MIN_SENHA || strlen(inputtext) > MAX_SENHA)
{
format(STRX, sizeof(STRX), "{FFFF00}[{FF0000} ERRO{FFFF00} ]{FFFFFF}: A senha deve ter entre %d e %d caracteres!", MIN_SENHA, MAX_SENHA);
SendClientMessage(playerid, Vermelho, STRX);
format(STRX, sizeof(STRX), "Senha muito grande ou pequena, %s!\nColoque sua senha e clique em \"Registrar\".", aname);
ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "Registrando uma conta", STRX, "Registrar", "Sair");
return 1;
}
dini_Create(file);
dini_Set(file, "Senha", encrypt(inputtext));
dini_Set(file, "level","0");
dini_Set(file,"level", "40");
dini_IntSet(file,"aAdmin",0);
dini_IntSet(file,"Admin",0);
SendClientMessage(playerid, 0x82C0FFAA, "{FFFF00}[{FFFFFF} CONTA{FFFF00} ]{FFFFFF}: Registrado(a) com sucesso!");
PlayerPlaySound(playerid, 1057, 0, 0, 0);
PlayerInfo[playerid][Logged] = 1;
new ano,mes,dia;
getdate(ano, mes, dia);
format(string, sizeof(string), " (%d/%d/%d)", dia,mes,ano);
dini_Set(file, "logoem", string);
new sstring[256];
new ip[128];
GetPlayerIp(playerid,ip,128);
format(sstring, sizeof(sstring), "%d", ip);
dini_Set(file, "IP", sstring);
}else{
Kick(playerid);
}
}
if(dialogid == LOGIN)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
format(file, sizeof(file), PASTA_CONTAS, aname);
if(response == 1)
{
new senhaacc[256];
senhaacc = dini_Get(file, "Senha");
if(strcmp(encrypt(inputtext)), senhaacc, true) == 0)
{
pAdmin[playerid] = dini_Int(file, "Admin");
return 1;
}
dini_Set(file, "Senha", encrypt(inputtext));
new senhaacc[256]; senhaacc = dini_Get(file, "Senha"); if(strcmp(encrypt(inputtext)), senhaacc, true) == 0)
stock encrypt(string[])
{
for(new x=0; x < strlen(string); x++)
{
string[x] += (3^x) * (x % 15);
if(string[x] > (0xff))
{
string[x] -= 64;
}
}
return 1;
}
Poe isto no final do seu GM e ve se resolve:
PHP код:
x % 15 significa o que ? Supondo que x seja 10, em quanto isto resultarб ? |
dini_Set(file, "Senha", inputtext);
O encrypt foi feito para os donos do servidor nгo pegarem a senha, deixando-a em um codigo que eu acho que й impossivel decodifica-lo manualmente. (( Eu acho =X ))
Acho que deve remove-lo. pawn Код:
|
Poe isto no final do seu GM e ve se resolve:
PHP код:
x % 15 significa o que ? Supondo que x seja 10, em quanto isto resultarб ? |
Nгo mexeu em nada ;s
deu os mesmos erros nos meus lugares, nгo sei essa de x % 15 ---' tb nao entendi ;s |