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.

DarkBASIC Discussion / #include problem

Author
Message
FROGGIE!
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: in front of my computer
Posted: 8th Apr 2004 21:27
ive got 2 files one is the main program the other is a data file(over 1000 lines so i wont bother posting it) its basically this



in my main program ive got this code



on the GOTO line it just comes up with 'no such label used'
can ne1 help?

my games are only as good as the people who play them...
so if my game is crap then its your f******g fault!
Magpie
21
Years of Service
User Offline
Joined: 16th Jul 2003
Location: Otherland! Cos it rocks!
Posted: 8th Apr 2004 21:55
Let me get this straight. You are telling the program to go to a label in a data file? Not in the actual code? I may have misunderstood the code I saw, it usually takes me a while to get the gist of a bit of code.

If the above statement is true then I think I see the problem.
You need a little loop that reads a bit of the file and sees if it's reached the "label" yet, if not it should continue reading until it reaches it. If you use this procedure more than once you might have to close the file and open it again to begin reading form the top.

As I said, I may have got this completely wrong.

If you have any questions about any of our projects you can email any member of Cogworks at [email protected].
Magpie
21
Years of Service
User Offline
Joined: 16th Jul 2003
Location: Otherland! Cos it rocks!
Posted: 8th Apr 2004 21:56


If you have any questions about any of our projects you can email any member of Cogworks at [email protected].
Egyptian Mua
21
Years of Service
User Offline
Joined: 7th Apr 2004
Location: htdocs
Posted: 9th Apr 2004 01:54
Try make ing itgoto firstvariableinincludedfile]
and then change your lable.

I think

-Egyptianmua

Login to post a reply

Server time is: 2025-05-23 06:50:02
Your offset time is: 2025-05-23 06:50:02