01.07.2018, 19:50
PHP код:
MySQL_DoesAccountExist(nick[])
{
new string[128];
mysql_format('Your SQL Handle', string, sizeof(string), "SELECT `nickname` FROM `accounts` WHERE `nickname` = BINARY '%s'", nick);
mysql_tquery('Your SQL Handle', string, "OnAccountExistCheck", "s", nick);
}
forward OnAccountExistCheck(nick[]);
public OnAccountExistCheck(nick[]) {
if(cache_num_rows() == 0) {
return false;
}
return true;
}