31.01.2017, 14:35
Код:
public MySQLCheckClan(sqlclanname[]) { new query[128]; new escstr[MAX_PLAYER_NAME]; new rows, fields; mysql_real_escape_string(sqlclanname, escstr, SQL, MAX_PLAYER_NAME); format(query, sizeof(query), "SELECT `ID` FROM clans WHERE `Tag` = '%s'", escstr); mysql_query(SQL, query); cache_get_data(rows, fields); if (!rows) { return 0; } else { new intid = cache_get_row_int(0, 0); return intid; } }