Hi

You have forgot to initialize n to 0

var n = 0 ;

Edit:

You may also need this in your while loop
to ensure you don't overwrite you buffer

while(my.found_destiny == 0 && n < 3 )


Last edited by rstralberg; 06/19/08 20:57.

Roland Strålberg Gamestudio/A7 Commercial rstralberg@msn.com