U replaced cache_get_data with cache_get_value_index_int.
What you want is:
new rows;
cache_get_row_count( rows );
field count is irelevent to you in this case, so we don't have to know how many we have...
Also use this:
cache_get_value_name_int(i,"id",Factions[i][ID]);
Instead of:
cache_get_value_int(i,"id",Factions[i][ID]);
What you want is:
new rows;
cache_get_row_count( rows );
field count is irelevent to you in this case, so we don't have to know how many we have...
Also use this:
cache_get_value_name_int(i,"id",Factions[i][ID]);
Instead of:
cache_get_value_int(i,"id",Factions[i][ID]);