Password hash issue (Whirlpool)
#8

Thanks guys, it works now. But i just ran into another problem with whirlpool.
When the player has to log in, this code is executed:
pawn Code:
if(dialogid == 2)
    {
        if(!response)
        {
            StopAudioStreamForPlayer(playerid);
            SendClientMessage(playerid, COLOR_SYSTEMRED, "( ! ) You must log in to play on this server. Please come again soon");
            Kick(playerid);
            gPlayerLogged[playerid] = 0;
        }
        new tmp, hashed_password[129];
        tmp = dj(file, "Password");
        WP_Hash(hashed_password, sizeof(hashed_password), inputtext);
        if(hashed_password != tmp)
        {
            ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD, "{FFFF00}Hopes Hills RPG Account", "{AF0000}Incorrect Password!\n{FFFFFF}Enter your Password", "Login", "Quit");
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREEN, "( ! ) You have successfully Logged In!");
            GivePlayerMoney(playerid, djInt(file, "Money"));
            PlayerInfo[playerid][pBanned] = djInt(file, "Banned");
            LoadUserData(playerid);
            gPlayerLogged[playerid] = 1;
            OnceLogged[playerid] = 1;
        }
But I get these errors:
Code:
C:\Users\Simon\Desktop\samp server\gamemodes\rpg.pwn(175) : error 006: must be assigned to an array
C:\Users\Simon\Desktop\samp server\gamemodes\rpg.pwn(178) : error 033: array must be indexed (variable "hashed_password")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Hope you can help. Thanks.
Reply


Messages In This Thread
Password hash issue (Whirlpool) - by sim_sima - 14.03.2012, 14:03
Re: Password hash issue (Whirlpool) - by T0pAz - 14.03.2012, 14:09
Re: Password hash issue (Whirlpool) - by sim_sima - 14.03.2012, 14:26
Re: Password hash issue (Whirlpool) - by T0pAz - 14.03.2012, 14:46
Respuesta: Password hash issue (Whirlpool) - by kirk - 14.03.2012, 14:46
Re: Respuesta: Password hash issue (Whirlpool) - by sim_sima - 14.03.2012, 14:54
Respuesta: Password hash issue (Whirlpool) - by kirk - 14.03.2012, 14:57
Re: Password hash issue (Whirlpool) - by sim_sima - 14.03.2012, 15:16
Respuesta: Password hash issue (Whirlpool) - by kirk - 14.03.2012, 15:24

Forum Jump:


Users browsing this thread: 5 Guest(s)