qwerty6543, on 28 August 2013 - 05:34 PM, said:
GopherAtl, on 28 August 2013 - 05:17 PM, said:
Put it in a while loop to make it repeat, instead of calling itself.
Also, use elseif, not else. As written it would be showing "command not recognized" twice if you weren't calling A again the first time, you should only have one final "else" at the end.
Also, use elseif, not else. As written it would be showing "command not recognized" twice if you weren't calling A again the first time, you should only have one final "else" at the end.
redstone.setOutput("right", true)
print "Type 'open' or 'close' to Open or close the airlock."
function A()
while true do
print ""
write ">"
input = read()
if input == "open" then
print "Opening..."
redstone.setOutput("right", false)
elseif input == "close" then
print "Closing..."
redstone.setOutput("right", true)
else
print "Command not recognised."
end
end
end
I typed that in exactly and when i try to run it it gives me a 204 error.
Never mind I figured it out


Posted by
