View difference between Paste ID: ug5BFxw8 and cyVc2pQE
SHOW: | | - or go back to the newest paste.
1
i = 0
2
username = ("admin")
3
pass = ("1234")
4
os.oullEvent = os.pullEventRaw
5
term.setBackgrounColor(8)
6-
until
6+
repeat
7
shell.run("clear")
8-
print("Login")
8+
textutils.slowPrint("Login")
9-
wtite("UserNme: ")
9+
write("UserNme: ")
10
a = read()
11
if (a == username) then
12-
textutils.slowPrint("Password: ")
12+
write("Password: ")
13
i = i+1
14
else
15-
textutils.slowPrint("Password: ")
15+
write("Password: ")
16
i = 0
17
end
18
b = read()
19
if (b == pass) then
20
shell.run("clear")
21-
wtite("LoginIn")
21+
textutils.slowPrint("LoginIn...")
22-
textutils.slowPrint("...")
22+
sleep(1)
23
print("LoginSucsesfull")
24
i = i+1
25
else
26-
wtite("LoginIn")
26+
textutils.slowPrint("LoginIn...")
27-
textutils.slowPrint("...")
27+
sleep(1)
28-
print("LoginFailed")
28+
textutils.slowPrint("LoginFailed")
29
end
30
until i == 2
31
shell.run("menu")