This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
BlackBeltJosh's profile picture

[Error] [Unfinished String] Please help!

Started by BlackBeltJosh, 19 June 2012 - 12:11 PM
BlackBeltJosh #1
Posted 19 June 2012 - 02:11 PM
Hello, I have been having problems with my computercraft coding (Just started last night :(/>/>) and I need a little help on making a door locking password with a computer.

My current code is this:
———————————————
print ("Correct")
redstone.setOutput("right", true)
sleep (3)
redstone.setOutput("right", false)
———————————————
For some reason is will say "bios:206: [string "malice"]:4: unfinished string"
I do not know why it is doing this or how to fix it, any help would be appreciated.
Thanks,
Joshua S.
BigSHinyToys #2
Posted 19 June 2012 - 03:20 PM
I tested the code and it works fine. could you give me a Little more info might help find the error.

1 ) did you copy that from the file or type it into the forums test editor if so you probably missed putting a " in the real code to close a string.
2 ) did you create the program in CC's editor or and external program like notepad++

If none of the above is helpful then try restarting minecraft then typing the code out again on a new computer and see if it errors.
BlackBeltJosh #3
Posted 19 June 2012 - 04:31 PM
1) I typed it in here myself but I was typing it from the code :(/>/>
2) I did not create the program in cc's or any external

Btw I am using it in an SMP using Tekkit.
Dirkus7 #4
Posted 19 June 2012 - 04:56 PM
The problem should be somewhere in the original code, the code you gave us is fine. I think you accidentally typed an extra "
BlackBeltJosh #5
Posted 19 June 2012 - 05:08 PM
Yeah I fixed it, Thanks!