Whirlpool writing 0
#1

Hello,

I'm simply coming back from a long break and whirlpool doesn't seem to want to work for me right now, lol. I've tried copying from previous code, but it still doesn't fix the issue.

The issue is Whirlpool is writing '0' instead of hashing the players password. Amateur mistake, I know - but hey. I'm coming back from a break.

pawn Код:
if(response)
        {
            new hashpass[129];
            WP_Hash(hashpass, sizeof(hashpass), inputtext);
            new INI:file = INI_Open(UserPath(playerid));
            INI_SetTag(file, "Player Data");
            INI_WriteString(file, "pPass", hashpass);
            INI_WriteInt(file, "pAdmin", 0);
            INI_WriteInt(file, "pMoney", 0);
            INI_WriteInt(file, "pKills", 0);
            INI_WriteInt(file, "pDeaths", 0);
            INI_Close(file);
            SCM(pid,COLOR_GREEN, "You have successfully registered on the server.");
            return 1;
        }
Reply
#2

Well there's nothing wrong with the code you've shown above. The problem could be to do with an outdated plugin. Also, make sure 'inputtext' is a valid input for a password and you haven't left it empty. Make sure the tag that you're setting is correct, try changing it to "Player_data" as opposed to "Player data" where the space is evident.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)