I've never used the include command much, but my game is becoming very bulky and the interpreter keeps crashing when I move blocks of text around, so I've decided to split the working parts into a couple of seperate include files. However, I have a problem....
I've split the functions into one include file, and data into another file. I include them at the start of my main file, but when I run it, the functions file stops and says that it can't find the data (from the data file). In other words, program 1 loads in programs 2 & 3, but program 2 stops because it can't find some of the data from program 3.
I get the error, 'Function Shortratings$ not found', when Shortratings$ is actually an array created at the start of the main file, using data from the data file.
For now I'll just stick them all together again, but I'd like to solve this as the files are becoming too large.
I've split the functions into one include file, and data into another file. I include them at the start of my main file, but when I run it, the functions file stops and says that it can't find the data (from the data file). In other words, program 1 loads in programs 2 & 3, but program 2 stops because it can't find some of the data from program 3.
I get the error, 'Function Shortratings$ not found', when Shortratings$ is actually an array created at the start of the main file, using data from the data file.
For now I'll just stick them all together again, but I'd like to solve this as the files are becoming too large.