01.04.2019, 15:46
How to replace it with the newer BlueG MySQL ?
Code:
stock LoadRank() { new query[512], id, type, ranks[256], rank[MAX_RANK][MAX_RANK_LEN]; mysql_query("SELECT * FROM `rankname`"); mysql_store_result(); while(mysql_fetch_row_format(query, "|")) { sscanf(query, "p<|>dds[256]", id, type, ranks); sscanf(ranks, "p<,>A<s[25]>()[10]", rank); if(type == 1) { for(new i = 0; i < MAX_RANK; i++) { if(strlen(rank[i]) > 1) format(FracRank[id][i], 25, "%s", rank[i]); } } } mysql_free_result(); print("Ranks were read"); }