Hi guys.
#2

You might be using strcmp wrong. It can be a very confusing function if you want it to work properly.
I, personally am not a big fan of strcmp.

Best would be to use AND to check for password inside your query.
Also, use num rows instead of comparing a string.

PHP код:
WP_Hash(hashpasssizeof(hashpass), inputtext);
mysql_format(MySQLquerysizeof(query), "SELECT * FROM `users` WHERE `Name` = '%e' AND `Password` = '%e'  LIMIT 1"GetName(playerid), hashpass);
if(
mysql_num_rows(query) != 0)
{
 
// password correct
} else {
 
// wrong password/username

Reply


Messages In This Thread
Hi guys. - by Similarty - 16.04.2018, 17:41
Re: Hi guys. - by jasperschellekens - 16.04.2018, 18:04
Re: Hi guys. - by Similarty - 16.04.2018, 18:07
Re: Hi guys. - by kovac - 16.04.2018, 18:09
Re: Hi guys. - by Similarty - 16.04.2018, 18:11

Forum Jump:


Users browsing this thread: 1 Guest(s)