Posted 09 April 2015 - 09:56 PM
I am trying to make a startup code for a multi function defence system, which i have not finished, but every time i try to launch it on my advanced terminal, i get <eof> error on line 46… why?
shell.run("clear")
print("Welcome to MoRBiiD's cannon control terminal!")
sleep(5)
print("What is your command?")
print("arm, deactivate") – No deactivation yet…
local input = read()
if (input) == ("arm") then
shell.run("clear")
print("Loading…")
sleep(2)
shell.run("clear")
print("Fire, arrow or tnt?") – No TNT yet…
local input = read()
if (input) == ("fire") then
shell.run("clear")
print(".")
sleep(1)
shell.run("clear")
print("..")
sleep(1)
shell.run("clear")
print("…")
sleep(1)
shell.run("clear")
redstone.setBundledOutput("back", colors.red)
sleep(1)
redstone.setBundledOutput("back", 0)
print("Done.")
end
elseif (input) == ("arrow") then
shell.run("clear")
print(".")
sleep(1)
shell.run("clear")
print("..")
sleep(1)
shell.run("clear")
print("…")
sleep(1)
shell.run("clear")
redstone.setBundledOutput("back", colors.white)
sleep(1)
redstone.setBundledOutput("back", 0)
print("Done.")
end
end – <eof> expected?
sleep(2)
shell.run("startup")
shell.run("clear")
print("Welcome to MoRBiiD's cannon control terminal!")
sleep(5)
print("What is your command?")
print("arm, deactivate") – No deactivation yet…
local input = read()
if (input) == ("arm") then
shell.run("clear")
print("Loading…")
sleep(2)
shell.run("clear")
print("Fire, arrow or tnt?") – No TNT yet…
local input = read()
if (input) == ("fire") then
shell.run("clear")
print(".")
sleep(1)
shell.run("clear")
print("..")
sleep(1)
shell.run("clear")
print("…")
sleep(1)
shell.run("clear")
redstone.setBundledOutput("back", colors.red)
sleep(1)
redstone.setBundledOutput("back", 0)
print("Done.")
end
elseif (input) == ("arrow") then
shell.run("clear")
print(".")
sleep(1)
shell.run("clear")
print("..")
sleep(1)
shell.run("clear")
print("…")
sleep(1)
shell.run("clear")
redstone.setBundledOutput("back", colors.white)
sleep(1)
redstone.setBundledOutput("back", 0)
print("Done.")
end
end – <eof> expected?
sleep(2)
shell.run("startup")