Game Maker's Garage Forum

Game Creation => SilverCreator => Topic started by: Chamez on November 21, 2011, 08:58:06 PM

Title: Are you kidding me?
Post by: Chamez 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.
Title: Re: Are you kidding me?
Post by: Gan on November 21, 2011, 10:39:52 PM
What's the END IF for?
Title: Re: Are you kidding me?
Post by: Connors 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?
Title: Re: Are you kidding me?
Post by: Charlo on November 29, 2011, 03:14:42 PM
It's weird that it would let you compile with the extraneous END IF in there.
Title: Re: Are you kidding me?
Post by: EqwanoX 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