18.06.2017, 01:42
I've got this code:
new string[128], pww[64];
format(string, sizeof(string), "SELECT `Password` FROM `Accs` WHERE `Nickname` = '%s'", nick);
printf("qr: %s", string);
mysql_query(string);
mysql_store_result();
if(mysql_retrieve_row())
{
mysql_fetch_field_row(pww, "Password");
printf("Password: %s", pww);
}
mysql_free_result();
the Password should be the the password hashed, but everytime its something like "a", "z", "x" just one letter and in database its normal hash
new string[128], pww[64];
format(string, sizeof(string), "SELECT `Password` FROM `Accs` WHERE `Nickname` = '%s'", nick);
printf("qr: %s", string);
mysql_query(string);
mysql_store_result();
if(mysql_retrieve_row())
{
mysql_fetch_field_row(pww, "Password");
printf("Password: %s", pww);
}
mysql_free_result();
the Password should be the the password hashed, but everytime its something like "a", "z", "x" just one letter and in database its normal hash