Jump to content




Help w/ password locked computer


  • You cannot reply to this topic
5 replies to this topic

#1 Fish_tacoz

  • Members
  • 10 posts

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

#2 ChaddJackson12

  • Members
  • 264 posts

Posted 05 November 2012 - 03:36 PM

Try taking out the spaces from write and print. So this:

write(" ")

Instead of this:

write (" ")

If that doesn't work then try changing around then try. changin the code to this:

write("Passcode: ")
pass = read("*")
if pass == "Password" then

Tell me how it works out.

#3 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 05 November 2012 - 05:54 PM

oldPull = os.pullEvent
os.pullEvent = os.pullEventRaw
while true do
term.clear()
term.setCursorPos(1,1)
write ("Password: ")
if read("*") == "1234" then
print("Access Granted")
term.clear()
term.setCursorPos(1,1)
break
else
print("Access Denied")
end
end
os.pullEvent = oldpull
thar i fixed it

#4 strideynet

  • New Members
  • 213 posts
  • LocationDistrict52

Posted 05 November 2012 - 07:41 PM

Lol ptint?

#5 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 05 November 2012 - 08:21 PM

View Poststrideynet, on 05 November 2012 - 07:41 PM, said:

Lol ptint?

fixed lol, sorry its like 1 AM and my hand eye coordination just farts

#6 Fish_tacoz

  • Members
  • 10 posts

Posted 30 December 2012 - 09:47 AM

Thanks Everyone





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users