20.08.2018, 06:29
PHP код:
stock bool:AccountExist(playername[])
{
new iQuery[128];
mysql_format(sqldb, iQuery, sizeof(iQuery), "SELECT `PlayerName` FROM `PlayerInfo` WHERE `PlayerName` = '%e'", playername);
new Cache:result = mysql_query(sqldb, iQuery);
new rows = cache_num_rows();
cache_delete(result);
if(rows > 0) return true;
return false;
}