Page 1 of 1

Array help

Posted: February 24th, 2007, 1:38 am
by sinshar
Im' trying to do this

Dim MyArray(2,2)
MyArray(0,0) = "myfirst name"
MyArray(0,1) = 44

MyArray(1,0) = "myfirst name"
MyArray(1,1) = 55

for i = 0 to 2
if ( MyArray(i,0) = "myfirst name" ) then
' ok found my name.
end if


However I keep getting TYPE mismathcs HEeeeeellp please

Posted: February 26th, 2007, 10:18 am
by sinshar
Nm,figured it out myself,

Posted: February 26th, 2007, 11:43 am
by wyvernx
Download my simple necro script. It has an example of how to setup an array, and how to access it.

Posted: February 26th, 2007, 1:12 pm
by sinshar
II had downloaded it, I think my problem was something to do with Another area ,THe debugger doesn't tell you if your problem just the line and the error. My problem was nestled somewhere deep in another file.

I ended up making a class, and having the arrays inside the class :)