Error parsing

Monkey Forums/Monkey Programming/Error parsing

AsianChink(Posted 2014) [#1]
loading game, I get error parsing 'connection header' and it won't play. I need help, please.

Also, I get this message
Monkey Runtime Error : Null object access

/Applications/MonkeyDemo63/modules/mojo/graphics.monkey<491>
/home/asdfg/Desktop/Assignments/Monkey_Projects/Project1_asdfg/screens.monkey<61>
/Applications/MonkeyDemo63/modules/diddy/framework.monkey<289>
/Applications/MonkeyDemo63/modules/mojo/app.monkey<70>


tiresius(Posted 2014) [#2]
What is at line 61 of screens.monkey ?


AsianChink(Posted 2014) [#3]
58 For Local myTicks:MidLineTick = Eachin midTick
59 myTicks.Draw()
60 Next
61 DrawImage(scoreImage, SCREEN_WIDTH*0.25, SCREEN_HEIGHT*0.1, playerOneScore)
62 DrawImage(scoreImage, SCREEN_WIDTH*0.75, SCREEN_HEIGHT*0.1, playerTwoScore)


dawlane(Posted 2014) [#4]
Its not a parsing error. It's a runtime error.
First check that the scoreImage object exists and that the image is loaded. Do this using draw image without the frame number, then check that the variable playerOneScore/playerTwoScore does indeed point to a vaild image frame. You can use the Print function for this.
Edit: One more thing make sure that when you are loading the images that you are using the correct function parameters for what you are trying to do.