11.11.2010, 20:40
stock IsPlayerRegistered(playername[])
{
new szQuery[512];
format(szQuery, sizeof(szQuery), "SELECT * FROM `phpbb_users` WHERE `username` = '%s'", playername);
SendQuery(szQuery);
mysql_store_result();
if (mysql_num_rows() == 0)
return false;
return true;
}
That code look alright?
I'm logging in with my username and it's saying unregistered. :/
{
new szQuery[512];
format(szQuery, sizeof(szQuery), "SELECT * FROM `phpbb_users` WHERE `username` = '%s'", playername);
SendQuery(szQuery);
mysql_store_result();
if (mysql_num_rows() == 0)
return false;
return true;
}
That code look alright?
I'm logging in with my username and it's saying unregistered. :/