11.04.2011, 10:09
If you bothered to read our posts, I suggested you tried to use Cameltoe's code, but update it to work by changing 'inputtext' in the format to 'buffer'
pawn Код:
new buffer[129];
WP_Hash(buffer, sizeof(buffer), inputtext);
format(Query, sizeof(Query), "SELECT * FROM Accounts WHERE Username = '%s' AND Password = '%s';", GetPName(playerid), buffer);
mysql_query(Query);
mysql_store_result();
if(mysql_num_rows()) {
// Correct pass
} else {
// Wrong pass
}
mysql_free_result();