An array in max is an area of memory set aside to store some variables.
The data is stored at an address in memory ( lets call this 'address') and then you access each element by using an offset.
The first piece of data is stored at 'address' so the offset is zero.
An array of 5 elements are then accessed by
address+0
address+1
address+2
address+3
address+4
You are trying to access 6 elements so max should be giving you an array out of bounds error, is debug on?
Look here http://www.blitzwiki.org/index.php/Arrays
The data is stored at an address in memory ( lets call this 'address') and then you access each element by using an offset.
The first piece of data is stored at 'address' so the offset is zero.
An array of 5 elements are then accessed by
address+0
address+1
address+2
address+3
address+4
You are trying to access 6 elements so max should be giving you an array out of bounds error, is debug on?
Look here http://www.blitzwiki.org/index.php/Arrays