Thread: Cool code bits
View Single Post
  #14  
Old 07-24-2017, 12:38 PM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 516
Gender: Unknown/Other
Credits: 63,670
Dinocanid is on a distinguished road
Default

That's strange. I just copy-pasted the .js file and I didn't have any errors at all. Make sure that when you add new questions, the closing bracket always has a comma next to it. (Highlighted in red)
Code:
  {
				"question"		: 	"Q1",
				"choices"		: 	[
										"answer"

									],
				"correct"		: 	"answer",
				"explanation"	: 	"explain",
 
			},
  {
				"question"		: 	"Q1",
				"choices"		: 	[
										"answer"

									],
				"correct"		: 	"answer",
				"explanation"	: 	"explain",
 
			},
If you don't the game will break/produce errors.
__________________
Reply With Quote