Hello, guys.

Just want to share the script for the any-sized passwords:
Suppose you have a GUI ("GUIPANEL") with six buttons, so:
button0 -> 'A'
button1 -> 'B'
button2 -> 'C'
button3 -> 'D'
button4 -> 'E'
button5 -> 'F'now the script...
//main global scriptstring sequence; // sequence of symbols
string password; // correct password
function game_start() {StrCopy(password, "ABCDEF"); //initialize the correct password
StrCopy(sequence, "");
}
function interface_click(int interface, int button) {// if we have clicked on GUIPANELif (interface == GUIPANEL) {
// ...pushing down a buttonif (button >=0) {
//add new symbol depending on the button pressed:if (button == 0) StrCat(sequence, "A"); //add "A"
else if (button == 1) StrCat(sequence, "B"); //add "B"
else if (button == 2) StrCat(sequence, "C"); //add "C"
else if (button == 3) StrCat(sequence, "D"); //add "D"
else if (button == 4) StrCat(sequence, "E"); //add "E"
else if (button == 5) StrCat(sequence, "F"); //add "F"
//now check the order:if (StrContains(password, sequence) == 0) {
//and check if we have done it successfullyif (StrLen(password)==StrLen(sequence)) Display("That's the correct password!");
}
// else there is a mistake....else {
Display("Wrong symbol!");
StrCopy(sequence, "");
}
}
}
}
//end of interface_click()If you put the int declaration inside the function, it turns the to zero every time the function is run, I think. That way it wouldn't work... Or am I wrong?
Yep, that is.
~Cheers