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 / Guessing Game Issue

Author
Message
SOG EP Havoc
12
Years of Service
User Offline
Joined: 5th Feb 2012
Location:
Posted: 6th Feb 2012 05:26
I am very new to DarkBasic programming. I do have some experience with VB. I purchased the Beginner's Guide to DarkBasic Game Programming to guide me along the way. I am following the book and coded the Guessing Game the way they describe it in the book. The program works great except for the fact that no matter if you got a high score or not, it still tells you that you have made a high score. I have watched numerous videos and searched the forums and I just cannot quite figure it out. Any help would be appreciated!
Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 6th Feb 2012 11:51
I've only skimmed your code but it looks like the problem is here:


Coupled with this:


Basically, if the highscore file exists then you display that they have achieved a high score.

Naphier
13
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 7th Feb 2012 22:36
I'd go with this:



Hope that helps.

Login to post a reply

Server time is: 2024-05-09 14:04:34
Your offset time is: 2024-05-09 14:04:34