05.04.2016, 17:14
Код HTML:
public MySQLCheckAccount(sqlplayersname[]) { new gQuery[128]; gQuery[0] = (EOS); new escstr[MAX_PLAYER_NAME]; mysql_escape_string(sqlplayersname, escstr); mysql_format(SQL, gQuery, sizeof(gQuery), "SELECT `ID` FROM `users` WHERE `name` = '%s' LIMIT 1", escstr); new Cache:result = mysql_query(SQL, gQuery); if(cache_num_rows()) { cache_delete(result); return 1; } cache_delete(result); return 0; }