07-12-2003, 12:34 AM
Hello again. I am making my first RPG, so it's not all that great. But, my graphics are going to be using AWDRAW and .put files. Someone gave me this sub
And it all worked out good but now for some reason it comes up with "Subscript out of Range" on REDIM array(Ints) AS INTEGER Can anyone help?!
Code:
DEFINT A-Z
L& = 0
FF = FREEFILE
OPEN Filename$ FOR BINARY AS #FF
L& = LOF(FF)
CLOSE #FF
Ints = (L& - 7) / 2
REDIM array(Ints) AS INTEGER
DEF SEG = VARSEG(array(0))
BLOAD Filename$, 0
DEF SEG
And it all worked out good but now for some reason it comes up with "Subscript out of Range" on REDIM array(Ints) AS INTEGER Can anyone help?!
ovaProgramming.
One night I had a dream where I was breaking balls. The next morning, BALLSBREAKER was born.
BALLSBREAKER 2
~-_-Status Report-_-~
Engine: 94%
Graphics: 95%
Sound: 100%
A Severe Error has crippled BB2 for the time being... I have to figure it out, but until then you won't see much of it .
-----------------------------
One night I had a dream where I was breaking balls. The next morning, BALLSBREAKER was born.
Quote: Excellent. Now you can have things without paying for them.
BALLSBREAKER 2
~-_-Status Report-_-~
Engine: 94%
Graphics: 95%
Sound: 100%
A Severe Error has crippled BB2 for the time being... I have to figure it out, but until then you won't see much of it .
-----------------------------