11.07.2010, 09:06
Sure
Код:
MySQLFetchAcctSingle(sqlplayerid, sqlvalname[], sqlresult[]) { new query[128]; format(query, sizeof(query), "SELECT %s FROM Players WHERE id = %d LIMIT 1", sqlvalname, sqlplayerid); mysql_query(query); //if (DEBUG) SQLLog(query); mysql_store_result(); if(mysql_fetch_row(sqlresult)==1) { mysql_free_result(); return 1; } return 0; }