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.

Author
Message
timer help
12
Years of Service
User Offline
Joined: 14th Jan 2014
Location:
Posted: 17th Mar 2014 18:30
So I got this code from this website and it is great. There is one thing I want to add to it. I want to make it so that if I click a number on the menu it will take me to one of my quizzes. Sadly, Im not good at coding and I do not know how to do this "wizardry." Also, instead of numbers I want it to display the subject name for each quiz. Here is the menu:



Here is the whole quiz


Please halp
timer help
12
Years of Service
User Offline
Joined: 14th Jan 2014
Location:
Posted: 18th Mar 2014 17:59
Um... can someone help please?
ShellfishGames
13
Years of Service
User Offline
Joined: 6th Feb 2013
Location:
Posted: 18th Mar 2014 18:34 Edited at: 18th Mar 2014 18:38
You just have to believe in yourself a little more!

But seriously... basically you're saying "Here's my code, here's some other code, I want to do this and this and that but I have know idea how to do that. So would somebody please do all the work for me?".

Many of us here certainly like to help by answering questions and sometimes even providing more or less insightful code. But there's a difference between answering questions or offering our ideas on how to approach a certain problem, and what you're asking for here...
Anyway, regarding the topic - I'd say if you don't understand the code you got "from this website", don't use it. Or alternatively, try to understand it, and if you've got questions about anything specific from that code, ask us.

Generally, simply ask more specific questions. Instead of "I want to do <insert something pretty complex that probably extends your knowledge quite a bit>". Because that's not really leading anywhere.

Quote: "I want to make it so that if I click a number on the menu it will take me to one of my quizzes."


If the menu consists of 3D objects, you'll probably use an if statement, pick object and gosub. You know if and gosub already, and pick object is really quite easy to use. All you need now is the object ID of each of your menu elements. No wizardry required.

Quote: "Also, instead of numbers I want it to display the subject name for each quiz."


Go through the main menu code. Sooner or later you'll find the command responsible for writing the number (it's print str$(i) within a for loop). All you need to do is replace str$(i) by the subject name. The easiest way to achieve this is using a string array, like this:



timer help
12
Years of Service
User Offline
Joined: 14th Jan 2014
Location:
Posted: 19th Mar 2014 18:15 Edited at: 19th Mar 2014 18:16
I tried adding a gosub MathTest to my code and it seems to display for a quick second and goes back to "Press spacebar to go back." I have tried constantly to make this work but nothing seems to change. How do I make this work?
timer help
12
Years of Service
User Offline
Joined: 14th Jan 2014
Location:
Posted: 20th Mar 2014 17:51
Um why do I have 130,000 views ._.
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 20th Mar 2014 18:07
Quote: "Um why do I have 130,000 views ._. "


LOL

ShellfishGames
13
Years of Service
User Offline
Joined: 6th Feb 2013
Location:
Posted: 21st Mar 2014 01:10
That's actually a pretty good question.

Sasuke
20
Years of Service
User Offline
Joined: 2nd Dec 2005
Location: Milton Keynes UK
Posted: 22nd Mar 2014 13:43
I sent a message to the mods to see if they know what's going on the with view count. I noticed that a few other threads also have strangely high view counts but no where near as high as this!

"Get in the Van!" - Van B
The Next
Web Engineer
18
Years of Service
User Offline
Joined: 3rd Dec 2007
Location: United Kingdom
Posted: 29th Mar 2014 18:48
Thanks for pointing out the view count bug I will take a look and try find a fix for it.

Windows 7 Pro, Intel i7 3.8 GHz, 16GB DDR3, NVIDIA GTX 780 4GB Superclocked

View the beta TGC forum progress at the url below View beta forum
tiffer
20
Years of Service
User Offline
Joined: 6th Apr 2006
Location: Scotland
Posted: 29th Mar 2014 19:02
It's not a 'view count bug' it's probably some lamo from his school trying to dos.
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 29th Mar 2014 21:36
Quote: "It's not a 'view count bug' it's probably some lamo from his school trying to dos."


I had the same thought since this is only occurring on his posts. Or there's a script running to constantly refresh the page to check for thread updates.

The Next
Web Engineer
18
Years of Service
User Offline
Joined: 3rd Dec 2007
Location: United Kingdom
Posted: 30th Mar 2014 15:03
Yeh after having a look it seems like a script calling the page multiple times.

Windows 7 Pro, Intel i7 3.8 GHz, 16GB DDR3, NVIDIA GTX 780 4GB Superclocked

View the beta TGC forum progress at the url below View beta forum

Login to post a reply

Server time is: 2026-07-07 17:08:21
Your offset time is: 2026-07-07 17:08:21