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 Professional Discussion / Questions right help

Author
Message
Marking_Dat
11
Years of Service
User Offline
Joined: 31st Jan 2014
Location:
Posted: 5th Feb 2014 17:27
As i was doing my game i ran into yet another problem that eliminates me from actually knowing how many questions i got right. it kinda works but it doesn't fully please help it tells me i have 8 questions right even if i have only 5 questions.


SamKM
15
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 5th Feb 2014 20:22
Looks like your game records the answers fine until you press spacebar to go back to the start of the game again, because you don't reset the answerscorrect variable to zero
If you got 5 points the first time around, that means answerscorrect = 5, and when you start off a second game, it's already recording 5 correct answers! You need to put 'answerscorrect = 0' before your game starts again.
Hope that helps

Login to post a reply

Server time is: 2025-05-17 07:20:47
Your offset time is: 2025-05-17 07:20:47