29.10.2011, 11:43
I want to hash my password in SELECT like this:
But it won't hash. It just uses it as a string.
Edit: The problem was in my Password field in the database. The size of field was 30, but it should be 32.
pawn Код:
mysql_format(1, g_Query, "SELECT * FROM `rpusers` WHERE `Password` = MD5('%e') AND `Username` = '%e' LIMIT 1", inputtext, GetName(playerid));
mysql_query_callback(playerid, g_Query, "LoginUser");
Edit: The problem was in my Password field in the database. The size of field was 30, but it should be 32.