Posted 05 November 2012 - 03:30 PM
I just started playing around with computercraft, and I seem to have hit a few speed bumps. Mainly, the error "bios:206: [string "startup"]:6: syntax error"
this is my code
oldPull = os.pullEvent
os.pullEvent = os.pullEventRaw
while true do
term.clear()
term.setCursorPos(1,1)
write ("Passcode")
if read ("*") == "Password" then
ptint ("Access Granted")
term.clear()
term.setCursorPos(1,1)
break
else
print ("Access Denied")
end
end
os.pullEvent = oldpull
this is my code
oldPull = os.pullEvent
os.pullEvent = os.pullEventRaw
while true do
term.clear()
term.setCursorPos(1,1)
write ("Passcode")
if read ("*") == "Password" then
ptint ("Access Granted")
term.clear()
term.setCursorPos(1,1)
break
else
print ("Access Denied")
end
end
os.pullEvent = oldpull