code

Started by , Thu 07/06/2012 20:20:54

Previous topic - Next topic

ig299

hey dose anybody know how to do a code like if you type only a spacific number into a gui something will happen
like if you type nothing or anything else this will hapan but if you type 238 this will happen   

Ghost

Not too hard. You can set up a textbox GUI and compare an entered string against a specific one.

if (gTextPad.Text == "238")
  Display("Whoo, Jackpot!");
else
  Display("Code Not Accepted!");

Calin Leafshade

"pacific number" is a highlight on these forums thus far.

Atelier


Khris

Why isn't this in Beginner's Technical Questions...? (roll)

There's also InputBox().
Code: ags
  String text = InputBox("What's the password?");
  if (text == "pacific") ...
  else ...

ig299

thanks and were is a warm welcome back lol

WHAM

Wrongthinker and anticitizen one. Utterly untrustworthy. Pending removal to memory hole.

DoorKnobHandle

We put as much effort into your warm welcome as you put into your posts! :)

Khris

#8
ƨ   Æ¨   Æ¨   Æ¨
welcome back

SMF spam blocked by CleanTalk