Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Having trouble with #include, please help!!

Author
Message
EvilKnuckles 666
23
Years of Service
User Offline
Joined: 23rd Jun 2003
Location:
Posted: 21st Feb 2004 01:40
Ok, i'm making a game and right now, i just have the title page and the other pages (high scores, options, about, etc.) each different page is in a different file. i have the main one, then i use #include at the very begining to make sure they're appended, then at the beginning of each page, i have a subroutine call them (_highscores:, _options:, etc), but, either keeps saying it can't close the "nest" (whatever that is, what is it????) or that the command line in one of my other sources is out of place. it's driving me crazy!!
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 21st Feb 2004 02:04
from what i understand includes can only hold functions and not gosubs in classic DB


EvilKnuckles 666
23
Years of Service
User Offline
Joined: 23rd Jun 2003
Location:
Posted: 21st Feb 2004 02:08
really??? that's conviniant (sp?) at all...

then what's a nest? and how do i close it
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 21st Feb 2004 02:15
a nest error might refer to an open if/then or do /while statement or even a return on the end of a gosub, or it could be the error message thats resulting from using gosubs in the include instead of functions


CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 21st Feb 2004 03:26
Don't use #include statement, include the files via the project manager and you should be good to go. I believe subs are ok in icluded files but I haven't tried it yet.

-RUST-
"What the... Mooooooooooo!"

Login to post a reply

Server time is: 2026-07-08 15:14:48
Your offset time is: 2026-07-08 15:14:48