Topic:   Are you kidding me?   (Read 18548 times)


0 Members and 1 Guest are viewing this topic.

Chamez


  • GMG Newbie

  • *


  • Posts: 31

  • The Town Noob
Are you kidding me?
« on: November 21, 2011, 08:58:06 PM »
LET roll = RANDOM(3)
IF player = 1 THEN LET player1 = player1+roll
IF player = 2 THEN LET player2 = player2+roll
IF player = 3 THEN LET player3 = player3+roll
IF player = 4 THEN LET player4 = player4+roll
END IF

This didn't work and I'm pretty pissed.
Every time I try to use this button, the program crashed.

Seriously? It's completely logical to me, but obviously something needs to be fixed.
I am the noob... Fear my stupid questions.

Gan


  • Administrator

  • ^ This guy is amazing.

  • *****


  • Posts: 4411
Re: Are you kidding me?
« Reply #1 on: November 21, 2011, 10:39:52 PM »
What's the END IF for?

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: Are you kidding me?
« Reply #2 on: November 26, 2011, 12:32:09 AM »
That's odd, you shouldn't need END IF but doesn't normally tell you this when you try to run a program?
Warning: The above post may have been modified multiple times.

"In a great game, the character must never perfectly obey the user's command"
 - Tim Rogers

http://connorspuzzles.tumblr.com/

Charlo


  • GMG-er

  • **


  • Posts: 451
Re: Are you kidding me?
« Reply #3 on: November 29, 2011, 03:14:42 PM »
It's weird that it would let you compile with the extraneous END IF in there.

EqwanoX


  • Administrator

  • GMG Extraordinaire

  • *****


  • Posts: 1180
Re: Are you kidding me?
« Reply #4 on: December 28, 2011, 10:03:12 AM »
lol, just take the END IF out and itll work. its true, if you have an unneccissary END IF it WILL crash, happens to me all the time