Posted 17 May 2012 - 11:45 AM
Everytime i run this code:
I get the Error in the Title. Whats wrong?
Print ("Bahnhof")
function start()
Print ("Passwort?")
pswd = io.read
if pswd = 01379000 then
main()
else
start()
end
end
function main()
clear
Print ("Ziel?")
Print ("1: Schneeland, 2: Dönerland")
input = io.read
if input = 1 then
redstone.setoutput ("back", false)
depart()
end
if input = 2 then
redstone.setoutput ("back", true)
depart()
else
main()
end
end
function depart()
clear
print ("losfahren?")
print ("Y/N")
logic = io.read
if logic = "Y" then
print("Abfahrt in 15s")
sleep(15)
redstone.setoutput ("left", true)
sleep 1
redstone.setoutput ("left, false)
else
start()
end
end
I get the Error in the Title. Whats wrong?