Here's my problem. Whenever I start my game, it runs fine. I run around and shoot at stuff, and at random times, it tells me that array subscript is out of bounds and crashes, basically that I used to high or low a number referencing an array. The way I have my code set up is like this. I have a level1 function in the main source. Then I have a loadlevel function in an included file that loads the level from a text file in the level1 function, which uses a bunch of functions. Functions within functions, etc. Because of this, when it tells me what line an error occurred, it doesn't give me the right one. It says my problem is at a piece of code I forgot to get rid of for newton, which isn't used and doesn't have anything to do with an array. Usually for things like this, I make an error on purpose, like making and object that already exists, around the code so I can eventually find where the problem is, but since the error doesn't happen on startup, this wouldn't work. So how would I go about finding the array thing I did wrong? It doesn't even tell me the array I tried to reference, so what can I do? Thanks in advance.
Codesurge is so awesome, thanks Hyrichter.