Quote:
Originally Posted by Arthur Kane
To be honest, if you wanna make this easier, you could just change your method of how you login, for example:
PHP код:
case DIALOG_LOGIN:
{
new hpass[129];
WP_Hash(hpass, 129, inputtext);
mysql_format(ourConnection, continueCheck, sizeof(continueCheck), "SELECT * FROM characters WHERE AccountName = '%e' AND AccountPass = '%e' LIMIT 1", ReturnName(playerid), hpass);
mysql_tquery(ourConnection, continueCheck, "OnPlayerLogin", "i", playerid);
}
PHP код:
public OnPlayerLogin(playerid)
{
if(!cache_num_rows())
{
//Bad password.
return 1;
}
//Password is a success.
return 1;
}
Just a thought.
|
This is the way i've been doing it a looong time, i've used the way you do before, and had the exact same issues.