Page 1 of 1

Array help needed

PostPosted: Fri May 06, 2011 7:57 am
by savvy
i know most things on game-editor, however i have never had to use arrays previously.
i know that...
int array[10] makes 10 integers, but my problem is this:

when i use...
if(array[cloneindex]==1)something;

it comes up with a READ error.

help please? i need someone to just explain arrays for me.

savvy

Re: Array help needed

PostPosted: Fri May 06, 2011 8:01 am
by skydereign
How many actors have that code? If a clone with cloneindex of 10 or greater tries to run that code it will give a read error.
READ attempted beyond allowed access area

Re: Array help needed

PostPosted: Fri May 06, 2011 11:25 am
by savvy
ok, problems solved, i now have a game-editor issue... when i clone my ground to make actor.1, it makes actor.120 -___- game-editor hasnt removed the data from the previous clones. any way to remove these?

Re: Array help needed

PostPosted: Fri May 06, 2011 11:54 am
by schnellboot
no

Re: Array help needed

PostPosted: Fri May 06, 2011 1:55 pm
by Game A Gogo
The best way to never have this problem is to create your actors in script, but for you it seems already too late S: