Posted 04 September 2013 - 03:25 AM
I cant figure out whats wrong with this Can you?
code = "mrw12m1"
pass = "nuke"
term.clear()
term.setCursorPos(12,1)
print"Enter Security System Standby Code"
input=read("*")
if input == (code) then
term.clear()
term.setCursorPos(12,1)
textutils.slowPrint("System Initalizing………….")
term.setCursorPos(12,2)
textutils.slowPrint("Security Standby Code Activated…")
term.setCursorPos(12,3)
textutils.slowprintPrint("System Initialized")
term.setCursorPos(12,4)
textutils.slowPrint("A.D.S Ready!")
term.setCursorPos(12,5)
textutils.slowPrint("To Activate The A.D.S Enter Password Now!")
input=read("*")
if input == pass then
print("Type On Or Type Off")
input=read()
if input == (off) then
print("A.D.S Off")
end else
if input == (on) then
print("A.D.S On")
else
print("Wrong Password")
sleep(3)
else
print"Wrong Code"
os.reboot()
end
code = "mrw12m1"
pass = "nuke"
term.clear()
term.setCursorPos(12,1)
print"Enter Security System Standby Code"
input=read("*")
if input == (code) then
term.clear()
term.setCursorPos(12,1)
textutils.slowPrint("System Initalizing………….")
term.setCursorPos(12,2)
textutils.slowPrint("Security Standby Code Activated…")
term.setCursorPos(12,3)
textutils.slowprintPrint("System Initialized")
term.setCursorPos(12,4)
textutils.slowPrint("A.D.S Ready!")
term.setCursorPos(12,5)
textutils.slowPrint("To Activate The A.D.S Enter Password Now!")
input=read("*")
if input == pass then
print("Type On Or Type Off")
input=read()
if input == (off) then
print("A.D.S Off")
end else
if input == (on) then
print("A.D.S On")
else
print("Wrong Password")
sleep(3)
else
print"Wrong Code"
os.reboot()
end