[HELP] MySQL & Whirlpool error - 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: [HELP] MySQL & Whirlpool error (
/showthread.php?tid=594541)
[HELP] MySQL & Whirlpool error -
quark - 19.11.2015
Hey guys, the mysql isnt saving the hashed password, but its being printed fine.
PHP код:
printf("asfda: %s", password);
WP_Hash(wpHash, 129, password);
printf("asfda: %s", wpHash);
mysql_format(mysql, query, sizeof(query), "INSERT INTO p_accounts (pNAME, pPASSWORD) VALUES('%s', '%s')",
szPlayerName, wpHash);
I dont know why it is not saving it correctly. The structure of pPASSWORD is VARCHAR(139).
Re: [HELP] MySQL & Whirlpool error -
quark - 19.11.2015
Oh well, i fixed it. The query was too low.
If someone has the same problem here's how i fixed it:
PHP код:
query[130] -> query[520]