14.01.2018, 09:20
Hello guys! As I said in the title I'm using the latest MySQL version! When I'm trying to check if player's name exists it always create another account with the same name. Here is my code:
PHP код:
new string[256];
format(string, 128, "SELECT * FROM `accounts` WHERE Username = '%e'", PlayerName(playerid));
mysql_tquery(zMySQL, string);
if(cache_num_rows())
{
//My Register Code
}
else
{
//My Login Code
}