This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
dragoon2's profile picture

Bios/Shell Prob [Solved]

Started by dragoon2, 26 May 2014 - 10:06 PM
dragoon2 #1
Posted 27 May 2014 - 12:06 AM
I Keep Getting The Error And Don't Know How To Fix It Or How This Happened

ERROR

"bios:257: attempt to call nil
> bios:257: attempt to call nil
Press any key to continue
multishell:64: attempt to call nil"


CODE

"os.pullEvent = os.PullEventRaw
term.clear()
term.setCursorPos(5,2)
print("Password: ")
local input = read("*")
if input == "admin" then
term.clear()
term.setCursorPos(1,1)
shell.run("shell")
else
term.clear()
term.setCursorPos(5,2)
print("Incorrect Password!")
sleep(1.5)
os.reboot()
end"
Edited on 26 May 2014 - 11:27 PM
lieudusty #2
Posted 27 May 2014 - 12:39 AM
Change your first line to:


os.pullEvent = os.pullEventRaw

It's pullEventRaw not PullEventRaw.
Edited on 26 May 2014 - 10:40 PM