Posted 26 December 2012 - 11:25 AM
Hello first of all. My favorite mod is redpower and I started to like computercraft aswell lately. Unfortunatly I'm not really an expert with coding, and I've made this small program but when I try to run it, it says "Attempt to call nil" I don't really know what that means and/or how to fix it. Me and a friend of mine set up a server together with houses close to eachother but with a pretty big gap inbetween. I made a retractable bridge using redpower and wanted to activate it using computercraft.
And this is what I came up with:
redstone.setOutput("back",true)
mon = peripheral.wrap("left)
mon.clear()
mon.setTextscale(1)
mon.setCursorpos(1,1)
mon.write("Bridge extracting…")
sleep(10)
mon.clear()
mon.setTextscale(1)
mon.setCursorpos(1,1)
mon.write("Bridge extracted")
redstone.setOutput("back",false)
Thanks in advance and excuse me if this is in the wrong discussion.
And this is what I came up with:
redstone.setOutput("back",true)
mon = peripheral.wrap("left)
mon.clear()
mon.setTextscale(1)
mon.setCursorpos(1,1)
mon.write("Bridge extracting…")
sleep(10)
mon.clear()
mon.setTextscale(1)
mon.setCursorpos(1,1)
mon.write("Bridge extracted")
redstone.setOutput("back",false)
Thanks in advance and excuse me if this is in the wrong discussion.