31.01.2017, 08:41
Hi all,
How to convert this to MySQL R39-6?
\
How to convert this to MySQL R39-6?
\
Quote:
public MySQLCheckClan(sqlclanname[]) { new query[128]; new escstr[MAX_PLAYER_NAME]; mysql_real_escape_string(sqlclanname, escstr); format(query, sizeof(query), "SELECT `ID` FROM clans WHERE `Tag` = '%s'", escstr); mysql_query(SQL,query); mysql_store_result(); if (mysql_num_rows()==0) { mysql_free_result(); return 0; } else { new strid[32]; new intid; mysql_fetch_row(strid); intid = strval(strid); mysql_free_result(); return intid; } } |