28.10.2016, 11:07
You implemented that additional array dimension as I advised you to, but you're incorrectly using it. The point of it is to put all your database information in there up till the maximum allowed tags per player (which is defined as MAX_TAGS_PER_PLAYER, right?):
The loop goes through all rows returned by the query only if i remains smaller than MAX_TAGS_PER_PLAYER (0 to 2 = 3 tags).
PHP код:
// Get rid of the 'index' variable
for(new i, j = cache_get_row_count(); i < j && i < MAX_TAGS_PER_PLAYER; i++) {
// Use 'i' to address the second array dimension
}