Topic:   another glitch   (Read 20586 times)


0 Members and 1 Guest are viewing this topic.

Gnome


  • GMG Extraordinaire

  • ***


  • Posts: 1073
another glitch
« on: April 03, 2009, 11:13:27 AM »
This is Rather weird.

On the card script I have an ON TIMER 10. It is good, until you click a button and go through USERASK command block, then it says that "ON TIMER 10" is a syntax error.
This Cannot be, NOOOOOOOO!!!!

-Gnomes Cry when the McRib was discontinued again.

Al Staffieri


  • GMG-er

  • **

  • no avatar

  • Posts: 452

  • I love GameMaker
Re: another glitch
« Reply #1 on: April 03, 2009, 11:23:05 AM »
Can you send me a sample?

Gnome


  • GMG Extraordinaire

  • ***


  • Posts: 1073
Re: another glitch
« Reply #2 on: April 03, 2009, 11:29:03 AM »
ok,

here:

http://www.mediafire.com/?tmqxymtqdmt

Probably not the best example, but on Card 4, Run it, click TYPE COMMAND type in "DIAGNOSTIC" and it should happen.
This Cannot be, NOOOOOOOO!!!!

-Gnomes Cry when the McRib was discontinued again.

Al Staffieri


  • GMG-er

  • **

  • no avatar

  • Posts: 452

  • I love GameMaker
Re: another glitch
« Reply #3 on: April 03, 2009, 01:22:25 PM »
It says the syntax error is on line 7 of card script 4. If you look at line 7 in the card script for card 4 you'll see this (there is a space between the 2nd event and 2):
  event2 = event 2 + 1

The line should be this:
  event2 = event2 + 1

That fixed it.

Also you should put an END TIMER as the last line in the card script to close the ON TIMER block. GameMaker does it internally for you if it reaches the end of a script with an open TIMER, MOUSEDOWN, or MOUSEUP block, but it's good practice to make sure you do it properly.