11.12.2016, 14:58
Why not just:
Код:
... mysql_pquery(MySQL, "SELECT * FROM Tag", "OnTagCount", ""); // count number of tag saved return 1; } PUBLIC:OnTagCount() { new rows, x; cache_get_row_count(rows); for(new i; i < rows; i++) // loop to fetch all rows { x = i + 1; // x is to be used as p_Tag index, since your code tell that it's from 1. If it's from 0, just use i as index and remove x variable. cache_get_value_name_int(i, "ID", p_Tag[x][tID]); cache_get_value_name_int(i, "SQLIB", p_Tag[x][tSQLIB]); cache_get_value(i, "Owner", p_Tag[x][tOwner]); } printf("- Chargement terminй. %i tag chargй.", TagNumber); }