HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Array Question

01-14-2004, 01:44 AM#1
Locotaur
Ok, first question, do arrays start at zero? Next, if I were to set an array size to six and then load values into array sections 1-6, would that be going out of the array space set aside by the computer? If arrays do start at zero then it should be 0-5 and setting a value into 6 could cause some problems during gameplay, right? Thanks!
01-14-2004, 02:06 AM#2
Eriond
Arrays don't start anyplace. You always have to define the number that the array uses.

If you load a variable into an array on the 6th, you can only recall that value when you're on the 6th. Same goes for all other numbers.
01-14-2004, 03:40 AM#3
Scarlet-Russian
no, what hes asking is if the minimum value is [0] and yes, it is.

secondly, i'm not really sure as to the second question but if yoou read closley what it asks for when you input the max you can find out. for example if it sais "input max index" then it will go 0 - n (n being your number), if it sais "input array size" then it will be 0 - (n-1)