Whirlpool help
#1

Hello everyone.
Why doesn't this work?
pawn Код:
new buf[129];
WP_Hash(buf, sizeof(buf), inputtext);
new INI:iniFile = INI_Open(UserPath(playerid));
INI_WriteInt(iniFile, "password", buf);
This code is in OnDialogResponse.
I don't know how to do it correctly with Whirlpool, everything else works fine
Reply
#2

pawn Код:
INI_WriteInt(iniFile, "password", buf);
WP_Hash is converting the inputtext into a string and here you are saving it as an integer. That is incorrect.

pawn Код:
INI_WriteString(iniFile,"password", buf);
But make sure next time you load or check the player's password. It should all be done as a string.
Reply
#3

Yea, I just figured out myself too :P
Thank you though
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)