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 / my project .....high score table

Author
Message
johnstringer
17
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 12th Mar 2009 19:40
hello need fairly urgent help new to the forum and dark basic in general i am using normal darkabsic and dont really understand why my highscore table isnt working any help would be greatly appreciated

project due very soon so please help
code is attached again thank you

feel free to email me tips i really need to get this working my email is [email protected]
Quirkyjim
17
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 12th Mar 2009 21:50
I think I found something!



Btw, in the future, you can just post your code in your text, just copy and paste the code, then highlight it and click "code" on the toolbar.



Here's your full code again (fixed I hope!):



Good luck with your project!

~QJ
BN2 Productions
22
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 12th Mar 2009 22:48 Edited at: 12th Mar 2009 23:01
Welcome to the forums (and language)!

Looks like you forgot to use PLAY MUSIC before LOOP MUSIC. Haven't tried but I am pretty sure you need both, but I will look at it some more later

[edit]

Found this:

Quote: "if score<val(highscore$(10,2))"


Might be misreading it, but it seems that that leads to say "If the player's score is less that the score in slot 2, then put the player in slot 1" which I think should be backwards, unless you read it where 10 is the highest score and 1 is the lowest.

Also for your system, I would suggest using 2 arrays. 1 is a HS_Name$() and the other is a HS_Score() that way you don't have to use Val() and it could result in fewer problems (getting numbers mixed up can make for interesting bugs).

What exactly isn't working on your code?

Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose

Login to post a reply

Server time is: 2026-07-21 19:06:12
Your offset time is: 2026-07-21 19:06:12