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 / High scores?

Author
Message
Bigdog
21
Years of Service
User Offline
Joined: 28th Apr 2003
Location:
Posted: 2nd May 2003 20:36
Can somesome tell me a way to save high scores and recall them? Do you need a seperate file to write to?
Nilrem
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 2nd May 2003 21:09
As far as am I aware (in my logical way of thinking) you have to save it to a seperate file, then upon loading the game (.exe) again it will read from the highscore (seperate) file, and load it into a variable...

No idea if this would work, or if even that is how it is done.

I hear and I forget. I see and I remember. I do and I understand.
Bigdog
21
Years of Service
User Offline
Joined: 28th Apr 2003
Location:
Posted: 2nd May 2003 23:10 Edited at: 2nd May 2003 23:11
I think it might be possible with the FILE commands. But I only have DBPro Trail at the moment. (Should be getting the full one soon) so I can't look at the examples. I have attached some code but it dosn't work. If someone can tell me what I am doing wrong or how to make HIGH SCORES work that would be great.



IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 2nd May 2003 23:25
Almost there!

I've just answered something like this in the Darkbasic (not pro) forum - the post is called 'saving'.
Bigdog
21
Years of Service
User Offline
Joined: 28th Apr 2003
Location:
Posted: 2nd May 2003 23:45 Edited at: 2nd May 2003 23:48
I'm pretty new to programming. I don't wholly understand what you wrote in the other forum. Could you, if you have time, please give and example how I could save a high score? I tried copying and pasting what you wrote but I got an error saying "could not determine parameter type of "file exists(Save.sav)at line 6"

Thanks

IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 3rd May 2003 00:03
Sorry, there was a small typo in the original. Seeing as you asked nicely, here's a complete example that I've commented. As long as you know how to use a function, you should have no problems understanding it.

Bigdog
21
Years of Service
User Offline
Joined: 28th Apr 2003
Location:
Posted: 3rd May 2003 00:16
WOW. Thanks for all the help IanM. That has really helped me.

Login to post a reply

Server time is: 2024-11-24 12:29:10
Your offset time is: 2024-11-24 12:29:10