01.07.2018, 14:38
How to convert to MySQL BlueG ?
StrickenKid:
StrickenKid:
Код:
MySQL_DoesAccountExist(nick[]) { new string[128]; format(string, sizeof(string), "SELECT `nickname` FROM `accounts` WHERE `nickname` = BINARY '%s'", nick); mysql_query(string); mysql_store_result(); new result = mysql_num_rows(); mysql_free_result(); if(result > 0) { return -1; } else { format(string, sizeof(string), "SELECT `nickname` FROM `accounts` WHERE `nickname` = '%s'", nick); mysql_query(string); mysql_store_result(); result = mysql_num_rows(); mysql_free_result(); if(result > 0) return -999; } return 0; }