Posted 18 June 2012 - 05:22 PM
My door login was working on SSP now it does not in SMP this is my code:
os.pullEvent = os.pullEventRaw
term.clear()
term.setCursorPos(5,5)
print(" !!test!!") – can remove
write(" Please Enter Your Name:")
name = io.read()
if name == "JiRBOT" then
term.clear()
print(" Good Day "..name)
sleep(3)
elseif name == "Demise" then
term.clear()
print(" Good Day "..name)
sleep(3)
else
term.clear()
print(" Can't let you do that")
sleep(2)
os.reboot()
end
term.clear()
term.setCursorPos(5,5)
print(" Hello " ..name.." please enter the password")
write(" ")
password = read("*")
if password == "1001" then
term.clear()
print(" Thanks "..name..". Enter.")
rs.setOutput("back", true)
sleep(3)
os.reboot()
rs.setOutput("back", false)
term.clear()
term.setCursorPos(5,5)
else
term.clear()
print(" WRONG!")
sleep(2)
os.reboot()
end
it gives me a
"filename":21:attempt to call nil
error
it half works i can input user it says hello msg then give me error above
os.pullEvent = os.pullEventRaw
term.clear()
term.setCursorPos(5,5)
print(" !!test!!") – can remove
write(" Please Enter Your Name:")
name = io.read()
if name == "JiRBOT" then
term.clear()
print(" Good Day "..name)
sleep(3)
elseif name == "Demise" then
term.clear()
print(" Good Day "..name)
sleep(3)
else
term.clear()
print(" Can't let you do that")
sleep(2)
os.reboot()
end
term.clear()
term.setCursorPos(5,5)
print(" Hello " ..name.." please enter the password")
write(" ")
password = read("*")
if password == "1001" then
term.clear()
print(" Thanks "..name..". Enter.")
rs.setOutput("back", true)
sleep(3)
os.reboot()
rs.setOutput("back", false)
term.clear()
term.setCursorPos(5,5)
else
term.clear()
print(" WRONG!")
sleep(2)
os.reboot()
end
it gives me a
"filename":21:attempt to call nil
error
it half works i can input user it says hello msg then give me error above