Quote:
Originally posted by billybob53
jsut wondering....
is this the right format for if the player pressis a specified key? cause i want to make a text field for passwords and login and stuff....
so i got a few questions:
1.) is this the format i should use?
if (keypressed){
if (keydown2(keycode(a),true){addstring this.passfield,a;}
" " " " " "
and so on?
2.) will keydown2 work offline?
3.) Should i use "if (this.passfield=<password>){//stuff} at the end?
|
1-I dont think it's right.
2-Yes,at least works for me.
3-'if (strequals(<password>,#s(this.passfield))){//stuff;} would be better.