Whirlpool help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Whirlpool help (
/showthread.php?tid=481310)
Whirlpool help -
sim_sima - 15.12.2013
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
Re: Whirlpool help -
Ballu Miaa - 15.12.2013
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.
Re: Whirlpool help -
sim_sima - 15.12.2013
Yea, I just figured out myself too :P
Thank you though