Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Passwords in GM6
Unspecified
Blab
Posted: Aug 12 2007, 08:45 AM
Quote Post


BowbowbowbowbowLUserIGI
[*]

Group Icon
Group: Validating
Posts: 2002
Member No.: 1679
Joined: 30-November 05

Status: (0d) [--]


How do I make a password entry in Game Maker 6?
PMEmail Poster
Top
Belgium
flipiberke
Posted: Aug 12 2007, 09:14 AM
Quote Post


Filiberke+Flip=Flipiberke!
[*][*][*]

Group Icon
Group: Members
Posts: 700
Member No.: 2132
Joined: 28-May 06

Status: (0d) [--]


var password;

/// Get the password
password := get_string('Give your password','');

/// Check passpord
if (password == '*insert password here*')
{
/// Execute code
}
else
{
/// Show message
show_message('Invalid Password');
}


--------------------
New Super Mario Kart: Nominated for the MFGG awards for game with highest replay value.
user posted image
PMEmail PosterMSN
Top
Mexico
seldeslim
Posted: Aug 12 2007, 12:02 PM
Quote Post


so good that its banned
[*][*][*][*][*]
[*]

Group Icon
Group: Members
Posts: 4186
Member No.: 2016
Joined: 15-April 06

Status: (0d) [--]


QUOTE (flipiberke @ Aug 12 2007, 09:14 AM)
var password;

/// Get the password
password := get_string('Give your password','');

/// Check passpord
if (password == '*insert password here*')
{
/// Execute code
}
else
{
/// Show message
show_message('Invalid Password');
}

this looks good, i should write it down....


--------------------
Tribute 1 BROWN mexican with forty years or less of AGE. Check all people your opponent controls, your opponent's hand, and all cards they draw (until the end of your opponent's third turn after this card's activation), and destroy all people with five or more years of AGE.

also this is gato from new mfgg3
just in case you're wondering about my join date status you silly newbies
PMUsers WebsiteAOL
Top
Unspecified
Blab
Posted: Aug 12 2007, 12:58 PM
Quote Post


BowbowbowbowbowLUserIGI
[*]

Group Icon
Group: Validating
Posts: 2002
Member No.: 1679
Joined: 30-November 05

Status: (0d) [--]


So what if I wanted multiple passwords?
PMEmail Poster
Top
United States
kremling
Posted: Aug 12 2007, 04:10 PM
Quote Post


Casual Member
[*][*][*]

Group Icon
Group: Members
Posts: 923
Member No.: 3240
Joined: 28-January 07

Status: (0d) [--]


same thing flip, said, just add another


if (password == '*insert password here*')


--------------------
My Reference_1
Deviant Art
"Doing the wrong thing is always right"
Drawings by mfggers: Omnomlicous - Jazz - Bip
user posted image
PMEmail PosterUsers Website
Top
Austria
Guinea
Posted: Aug 12 2007, 04:10 PM
Quote Post


6
[A][*][*][*][*]
[*][*][*][*][*]
[*]

Group Icon
Group: Admins
Posts: 8600
Member No.: 893
Joined: 15-March 05

Status: (0d) [--]


QUOTE (Blab @ Aug 12 2007, 07:58 PM)
So what if I wanted multiple passwords?

CODE

var password;

/// Get the password
password := get_string('Give your password','');

/// Check passpord
if (password == '*insert password1 here*')
{
/// Execute code
}
else if (password == '*insert password2 here*')
{
/// Execute code
}
else if (password == '*insert password3 here*')
{
/// Execute code
}
else if (password == '*insert password4 here*')
{
/// Execute code
}
else if (password == '*insert password5 here*')
{
/// Execute code
}
else if (password == '*insert password6 here*')
{
/// Execute code
}
else
{
/// Show message
show_message('Invalid Password');
}
PMEmail PosterAOLMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0413 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.37 ]