05.04.2016, 14:20
before.
You mean
?
You mean
Код:
public MySQLCheckAccount(sqlplayersname[]) { new query[128]; new escstr[MAX_PLAYER_NAME]; mysql_real_escape_string(sqlplayersname, escstr); format(query, sizeof(query), "SELECT `ID` FROM users WHERE `name` = '%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; } }