FreeBASIC problems: Using PUT for graphics.
Posted: Fri Apr 01, 2005 11:24 am
Okay guys, I'm using FBIde to compile and run my program, however, for some reason, it has trouble with this command:
PUT (TileX%, TileY%), TileSet(TilePos%), PSET
It basically refuses to accept TileSet(TilePos%) as a vaild statement. It doesn't want to compile becasue of the (TilePos%) part, which, of course, is where I'm pointing PUT to the array index start point.
...
Gha, that was a lousy sentence... anyway, I hope you guys know what I mean. So, my question is, why isn't this recognized as a valid statement? ...I never had a problem using variables for the image index start position in QB, so why is it a problem in FB? ...or is it just the FBIde which causes the problem?
I guess, I'm gonna try compiling my code through a command line, and see what happens... but other than that, does anyone have an ideas why it won't let me run my code? (Note: that is the only problem... everything else checks out fine)
EDIT: Tried compiling at a command line, I still get the same problem. So, I'm stuck... anyone? Some help would be greatly appreciated.
EDIT2: Okay, I've got it figured out... looks like I forgot to declare some variables there. I'll post here again, if I have more problems, heh.
PUT (TileX%, TileY%), TileSet(TilePos%), PSET
It basically refuses to accept TileSet(TilePos%) as a vaild statement. It doesn't want to compile becasue of the (TilePos%) part, which, of course, is where I'm pointing PUT to the array index start point.
...
Gha, that was a lousy sentence... anyway, I hope you guys know what I mean. So, my question is, why isn't this recognized as a valid statement? ...I never had a problem using variables for the image index start position in QB, so why is it a problem in FB? ...or is it just the FBIde which causes the problem?
I guess, I'm gonna try compiling my code through a command line, and see what happens... but other than that, does anyone have an ideas why it won't let me run my code? (Note: that is the only problem... everything else checks out fine)
EDIT: Tried compiling at a command line, I still get the same problem. So, I'm stuck... anyone? Some help would be greatly appreciated.
EDIT2: Okay, I've got it figured out... looks like I forgot to declare some variables there. I'll post here again, if I have more problems, heh.