[Ajuda] Problema com Whrlpool.
#1

Olб.

Pessoal mudei o encriptaзгo do meu gamemode para Whirlpool.

Estou tentando adaptar mas nгo estou conseguindo, Apуs eu se registrar e verificar dentro do jogador a senha fica como NULL.

Nгo sei o motivo, agradeзo desde jб!

Criaзгo de contas
pawn Код:
format(String,sizeof(String),"InfoJogadores/Contas/%s.ini",Nome_Conta(playerid));

        DOF2_CreateFile(String);

        WP_Hash(INFO_P[playerid][SENHA_P], 129, password);

        DOF2_SetString(String,"Senha",INFO_P[playerid][SENHA_P]);
        DOF2_SetInt(String,"Tutorial",INFO_P[playerid][TUTO_P]);
        DOF2_SetInt(String,"Skin",INFO_P[playerid][SKIN_P]);
Logar contas
pawn Код:
new Hash[129];
    WP_Hash(Hash, 129, password);
    if(strcmp(Hash, INFO_P[playerid][SENHA_P]) == 0)
    {
        LimparChatBox(playerid, 100);

        INFO_P[playerid][TUTO_P] = DOF2_GetInt(String, "Tutorial");
        INFO_P[playerid][SKIN_P] = DOF2_GetInt(String, "Skin");

Salvar contas

pawn Код:
format(String,sizeof(String),"InfoJogadores/Contas/%s.ini",Nome_Conta(playerid));
    if(DOF2_FileExists(String))
    {
        if(JogadorLogado[playerid] == true)
        {
            DOF2_SetString(String,"Senha", INFO_P[playerid][SENHA_P]);
            DOF2_SetInt(String,"Tutorial",INFO_P[playerid][TUTO_P]);
            DOF2_SetInt(String,"Skin",INFO_P[playerid][SKIN_P]);
Reply


Messages In This Thread
Problema com Whrlpool. - by Petrick™ - 07.02.2016, 15:11
Re: Problema com Whrlpool. - by SaDaN - 07.02.2016, 19:44
Re: Problema com Whrlpool. - by Petrick™ - 07.02.2016, 19:59
Re: Problema com Whrlpool. - by Petrick™ - 07.02.2016, 21:46
Re: Problema com Whrlpool. - by SaDaN - 07.02.2016, 22:52
Re: Problema com Whrlpool. - by Petrick™ - 07.02.2016, 22:58
Re: Problema com Whrlpool. - by SaDaN - 08.02.2016, 00:17
Re: Problema com Whrlpool. - by PT - 08.02.2016, 06:58
Re: Problema com Whrlpool. - by Petrick™ - 08.02.2016, 12:35
Re: Problema com Whrlpool. - by rjjj - 08.02.2016, 17:36

Forum Jump:


Users browsing this thread: 2 Guest(s)