Register System
Hi and this is the first post of the deadly dangers label, this means that this code is thought out of my head and it is up to you to try it, if there is something wrong with it please reply in the comments section of this post or use the send me a comment button at the top right.
Register system - non_encrypted
I have made this non encrypted so the noobs will be not as confused
This requires 2 text files named "user" and "pass"
[code]obj=login event=create
username=""
password=""
//defines vars
[/code]
[code]obj=login event=left pressed (can be changed)
username=get_string("username imput please",'')
f=file_text_open_read("user.txt")
u=file_text_read_string(f)
if u=username
then
{
password=get_string("password imput please",'')
f=file_text_open_read("pass.txt")
u=file_text_read_string(f)
if p=password
then
show_message("everything is correct")
else
show_message("incorrect password")
}
else
show_message("username incorrect")
[/code]
Register system - non_encrypted
I have made this non encrypted so the noobs will be not as confused
This requires 2 text files named "user" and "pass"
[code]obj=login event=create
username=""
password=""
//defines vars
[/code]
[code]obj=login event=left pressed (can be changed)
username=get_string("username imput please",'')
f=file_text_open_read("user.txt")
u=file_text_read_string(f)
if u=username
then
{
password=get_string("password imput please",'')
f=file_text_open_read("pass.txt")
u=file_text_read_string(f)
if p=password
then
show_message("everything is correct")
else
show_message("incorrect password")
}
else
show_message("username incorrect")
[/code]
Labels: DeadlyDangers

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home