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

Problem with Computercraft

Started by Lauralwaysmile, 18 November 2012 - 10:59 PM
Lauralwaysmile #1
Posted 18 November 2012 - 11:59 PM
i'm sorry if this does not go here but not wise where to put, I dont speak english very well , so I have some words wrong
This goes out : bios :206: [string "startup"] :2: unexpected symbol
And here the text :

edit startup

local function timbre ()
rs.setOutput("bottom",true)
mon=peripheral,wrap("right")

os.pullEvent("redstone")
print("can he or she enter?")
mon.setTextScale(1)
mon.setCursorPost(2,4)
mon.write(''they are calling")
mon.setCursorPost(5,5)
mon.write(''can it happen?")

local x =io.read()
if x == ''yes'' then

rs.setOutput("bottom",false)
mon.clear()
mon.setCursorPost(2,4)
mon.write("welcome to my house")
sleep(5)
rs.setOutput("bottom",true)
mon.clear()
sleep(5)
term.setCursorPost(1,1)
timbre()
else

mon.clear()
mon.setCursorPost(2,4)
mon.write("go out of my house")
sleep(5)
mon.clear()
sleep(5)
term.clear()
term.setCursorPost(1,1)
timbre()
end

end
timbre()
Which is the problem?
Tiin57 #2
Posted 19 November 2012 - 12:19 AM

mon=peripheral,wrap("right")
should be

mon=peripheral.wrap("right")