hi eveyone!

I have a problem: I've got an array buildings[300] but when it is called with an index bigger than 0 the engine crashes...

here is one example:

function filewr
{var filehandle;
var a;


a=0;
filehandle=file_open_write("buildings.txt");
while(a<=99)
{


file_var_write(filehandle,buildings[0*100+a]);
file_var_write(filehandle,buildings[ 1*100+a]);
file_var_write(filehandle,buildings[ 2*100+a]);
a+=1;
wait(1);
}
file_close (filehandle);
}