Posted 30 December 2015 - 03:30 AM
So I just started trying to learn about CC and I tried to write a startup program, I copied all of the code from a tutorial i found on a website, but when i tried to run it, it responded with:
bios:14: [string "startup":13: '}' expected
I don't know what happened, i did everything it said to do, i typed; edit startup, then typed in the code below, but it didn't work, help?
Cheers,
Pancake_Mage
bios:14: [string "startup":13: '}' expected
I don't know what happened, i did everything it said to do, i typed; edit startup, then typed in the code below, but it didn't work, help?
local side = "back"
local password = "password"
local opentime = 2
term.clear()
term.setCursorPos(1,1)
write("Password: ")
local input = read("*")
if input == password then
term.clear()
term.setCursorPos(1,1)
print("Password correct!")
rs.setOutput(side,true)
sleep(opentime)
rs.setOutput(side,false)
else
print("Password incorrect!")
sleep(2)
end
end
Cheers,
Pancake_Mage