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 / Appearing When Not Suppose to! Please Help!

Author
Message
Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 1st Aug 2006 00:45
When Something takes me to a sub in my game, another sub appears when I isn't suppose to. Please Help!

Thank You!

Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 1st Aug 2006 00:47
code please.

Pirates of Port Royale
Live the life of a pirate.
Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 1st Aug 2006 00:50
Sorry,


I didn't wanna type a game,
But after print "Blah,Blah"
"Load What?" shows up.

spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 1st Aug 2006 00:53
xyz: is just a label, program will just skip through them.

What you need to do is 'return' from new_game:




You should always 'return' from a gosub

Boo!
Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 1st Aug 2006 00:59
Thank You Very Much! Been Baffling Over it!

Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 1st Aug 2006 16:07
Wait! Now it is showing the beginning of new_game!

Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 2nd Aug 2006 00:02
So change "gosub newgame" to "gosub loadgame"

like this:


I'm pretty sure i typed everything correctly, however i do not own dbc, only dbp, but it should work.

Login to post a reply

Server time is: 2024-09-25 05:32:31
Your offset time is: 2024-09-25 05:32:31