19.11.2015, 18:12
Hey guys, the mysql isnt saving the hashed password, but its being printed fine.
I dont know why it is not saving it correctly. The structure of pPASSWORD is VARCHAR(139).
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);