Creates the last object only
#3

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?):

PHP код:
// Get rid of the 'index' variable
for(new icache_get_row_count(); && MAX_TAGS_PER_PLAYERi++) {
    
// Use 'i' to address the second array dimension

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).
Reply


Messages In This Thread
Creates the last object only - by vassilis - 28.10.2016, 10:55
Re: Creates the last object only - by iLearner - 28.10.2016, 10:58
Re: Creates the last object only - by AndySedeyn - 28.10.2016, 11:07
Re: Creates the last object only - by vassilis - 28.10.2016, 11:35
Re: Creates the last object only - by AndySedeyn - 28.10.2016, 11:39
Re: Creates the last object only - by vassilis - 28.10.2016, 12:04

Forum Jump:


Users browsing this thread: 2 Guest(s)