Weird bug with selecting in mysql_query - 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: Weird bug with selecting in mysql_query (
/showthread.php?tid=636009)
Weird bug with selecting in mysql_query -
czop1223 - 18.06.2017
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