Topic:   USERASK   (Read 17499 times)


0 Members and 2 Guests are viewing this topic.

Zoo


  • GMG Extraordinaire

  • ***


  • Posts: 1686
    • My Bandcamp
USERASK
« on: March 23, 2011, 09:02:33 PM »
What's wrong with this code?

cc$ = USERASK Well what is it?
IF cc$ = Icannottell THEN
  ALERT Now you'll have double the turns to hit the dragons! How did you know?
    cheat = 1
END IF

-zoo
P.S. this is for a cheat code, so I can't put the actual variable in.
Kirby, your pudgy buddy from dream land, is back again on the game boy®!

Al Staffieri


  • GMG-er

  • **

  • no avatar

  • Posts: 452

  • I love GameMaker
Re: USERASK
« Reply #1 on: March 24, 2011, 04:55:54 AM »
String variables should be in quotes.

cc$ = USERASK Well what is it?
IF cc$ = "Icannottell" THEN  
  ALERT Now you'll have double the turns to hit the dragons! How did you know?
    cheat = 1
END IF

Zoo


  • GMG Extraordinaire

  • ***


  • Posts: 1686
    • My Bandcamp
Re: USERASK
« Reply #2 on: March 24, 2011, 10:19:58 AM »
Oh, oops.
Kirby, your pudgy buddy from dream land, is back again on the game boy®!