Thread: keys
View Single Post
  #2  
Old 12-14-2002, 07:19 AM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Re: keys

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.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote