but I get this error:

This is my code:
os.pullEvent = os.pullEventRaw
function PrintDoors()
x = x + 1
print("Failed Opening Attempts:(..x..)")
end
if rs.getInput("bottom") then
PrintDoors()
end
Help?
Posted 08 September 2012 - 01:43 PM

os.pullEvent = os.pullEventRaw
function PrintDoors()
x = x + 1
print("Failed Opening Attempts:(..x..)")
end
if rs.getInput("bottom") then
PrintDoors()
end
Help?
Posted 08 September 2012 - 01:51 PM
if rs.getInput("bottom")
if rs.getInput("bottom") then
Posted 08 September 2012 - 01:52 PM
if rs.getInput("bottom") then
PrintDoors()
end
Posted 08 September 2012 - 01:55 PM
Snakybo, on 08 September 2012 - 01:51 PM, said:
if rs.getInput("bottom")
if rs.getInput("bottom") then
os.pullEvent = os.pullEventRaw
print("X-Cor:DoorLock")
print("Passcode Required For Entry")
x = io.read()
if x == "xcor" then
print("Passcode Correct!")
redstone.setOutput("left", true)
sleep(2.5)
redstone.setOutput("left", false)
os.reboot()
else
print("Passcode Incorrect!")
redpulse top 1 1
sleep(1)
os.reboot()
end
Here is the error:Line 13 '=' expected (It doesnt say this exactly i just broke it down)and in the redpulse help function it doesnt say that you need ()'s or ""'s
Posted 08 September 2012 - 01:58 PM
Posted 08 September 2012 - 02:50 PM
redpulse top 1 1
redpulse("top", 1, 1)
0 members, 2 guests, 0 anonymous users