Hi
After 5 - 7 times I start the engine,after everything work fine I press ESC to close the engine and return to SED.. and then SED crashes and tells me to close it.
BUT
I noticed that it only happens if my script calls this function.
If i dont call this function, I can call the engine 1000000 times withuot any apparent error.
Here´s the code
function SEARCH_DESTINO()
{
var temp_destino;
var temp_tipo[3];
var n;
while(my.found_destiny == 0)
{
path_scan(my,my.x,my.pan,vector(360,0,9000));
temp_destino = path_scannode(my, n);
path_getnode(my,temp_destino, null,temp_tipo[0]);
if(temp_tipo[0] == my.destiny_type)
{
my.alvo = temp_destino;
my.found_destiny = 1;
}
n += 1;
}
}
repeatin:
If my script calls this function, after 5 or 7 times, SED crashes after i close the engine.
PS1.THE GAME RUNS FINE ALL THE TIMES, IT ONLY CRASHES WHEN I CLOSE THE ENGINE.
PS2. IF I COMPILE MY GAME, I DONT HAVE THIS PROBLEM! AND THE GAME RUNS FINE!
please help, its beyound my comprehension!