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 / Code not working ~ Need Help

Author
Message
db programmer 12
19
Years of Service
User Offline
Joined: 7th Sep 2005
Location:
Posted: 14th Oct 2005 21:52
Here's my code:



Why isn't the save feature working anyone know?

Thanks Guys

Warning Pointless Signature Below:
Runescape - Current Level 37 EA Isn't Evil They Just Buy Everything And Plan to Rule the World! 2D Shouldn't Die, It Rocks!!!! DBC Level - Advanced Beginner
dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 14th Oct 2005 22:05 Edited at: 14th Oct 2005 22:07
You need to exit the loop when you press the load or save button, using exit. such as :


or use a gosub



I hope this makes you code work. It should though.

Visit my website of games http://www.dabip.co.nr!

Visit http://www.madmanhosting.tk For a GREAT web host visit MAD MAN HOSTING
db programmer 12
19
Years of Service
User Offline
Joined: 7th Sep 2005
Location:
Posted: 14th Oct 2005 22:14
Alright trying it right now. Thanks man!

Warning Pointless Signature Below:
Runescape - Current Level 37 EA Isn't Evil They Just Buy Everything And Plan to Rule the World! 2D Shouldn't Die, It Rocks!!!! DBC Level - Advanced Beginner
dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 14th Oct 2005 22:28
Yah, I also added a part that makes the variable change back to 0 when it is done loading or saving. that way, you won't do both when you save. Such as if you load, then save, it will ask you to save, then will go to load. IF you are confused, take out the


Try yyour code with it in, then with it out. Do both save and load (in any order). You don't have to if you don't want to, but it will help you understand more. (if you need explaining just ask)

Visit my website of games http://www.dabip.co.nr!

Visit http://www.madmanhosting.tk For a GREAT web host visit MAD MAN HOSTING
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 15th Oct 2005 04:00 Edited at: 15th Oct 2005 04:03
I would use arrays for the text and use the "save array" and "load array" comands.

Login to post a reply

Server time is: 2025-05-22 14:53:52
Your offset time is: 2025-05-22 14:53:52