Posted 25 August 2012 - 09:05 AM
I have found a program on youtube and modified it slightly for my needs, but when its starts it has this error:
bios:206: [string "startup"]:25: unexpected symbol
I have tried to figure out the problem by myself but cant find the error. The code is below, if you can correct me it would be greatly appreciated:
N.B. I am running Tekkit for 1.3.1 with ComputerCraft 1.3
while true do
term.clear()
term.setCursorPos(1,2)
print" ———————————————- "
print" | |"
print" | Cryo Chamber Crontrol |"
print" | |"
print" ———————————————- "
print" "
print" "
print" "
print" Insert Command: "
term.setCursorPos(29,10)
input = io.read()
term.setCursorPos(1,2)
print" ———————————————- "
print" | |"
print" | Cryo Chamber Crontrol |"
print" | |"
print" ———————————————- "
print" "
print" "
print" "
print" "
if input == "Activate" or input == "activate" or input == "ACTIVATE" then
if rs.getOutput("back") == true then
term.setCursorPos(17,10)
print("Cryo Chamber Already Active")
else
rs.setOutput("back", true)
term.setCursorPos(17,10)
print("Cryo Chamber Now Active")
end
else
if input == "Deactivate" or input == "deactivate" or input == "DEACTIVATE" then
if rs.getOutput("back") == false then
term.setCursorPos(17,10)
print("Cryo Chamber Already Deactive")
else
rs.setOutput("back", false)
term.setCursorPos(17,10)
print("Cryo Chamber Now Deactive")
end
else
term.setCursorPos(17,10)
print("Command not Recognized")
end
sleep(3)
end
As I said any help would be greatly appreciated, so thanks in advance.
bios:206: [string "startup"]:25: unexpected symbol
I have tried to figure out the problem by myself but cant find the error. The code is below, if you can correct me it would be greatly appreciated:
N.B. I am running Tekkit for 1.3.1 with ComputerCraft 1.3
while true do
term.clear()
term.setCursorPos(1,2)
print" ———————————————- "
print" | |"
print" | Cryo Chamber Crontrol |"
print" | |"
print" ———————————————- "
print" "
print" "
print" "
print" Insert Command: "
term.setCursorPos(29,10)
input = io.read()
term.setCursorPos(1,2)
print" ———————————————- "
print" | |"
print" | Cryo Chamber Crontrol |"
print" | |"
print" ———————————————- "
print" "
print" "
print" "
print" "
if input == "Activate" or input == "activate" or input == "ACTIVATE" then
if rs.getOutput("back") == true then
term.setCursorPos(17,10)
print("Cryo Chamber Already Active")
else
rs.setOutput("back", true)
term.setCursorPos(17,10)
print("Cryo Chamber Now Active")
end
else
if input == "Deactivate" or input == "deactivate" or input == "DEACTIVATE" then
if rs.getOutput("back") == false then
term.setCursorPos(17,10)
print("Cryo Chamber Already Deactive")
else
rs.setOutput("back", false)
term.setCursorPos(17,10)
print("Cryo Chamber Now Deactive")
end
else
term.setCursorPos(17,10)
print("Command not Recognized")
end
sleep(3)
end
As I said any help would be greatly appreciated, so thanks in advance.