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

Printing lines for Tekkit Adventure!

Started by Kellosian, 17 May 2012 - 11:28 PM
Kellosian #1
Posted 18 May 2012 - 01:28 AM
So, I'm new to ComputerCraft. Right now, I'm just trying to make it say something to the adventurers who discover it, but it gives me this error;
bios:206: [string "D-MAP"]:3: unfinished string

I'm in a Java class, so I know what a string is, but I have no idea what the problem is. The code is attached to the post.

Help me ComputerCraft forum; you're my only hope!
MysticT #2
Posted 18 May 2012 - 01:33 AM
For multi-line strings you need to use [[ and ]] not quotes (""), like this:

local multiLine = [[ Hello
Second line
Another one here
All the lines you want!!
]]
Kellosian #3
Posted 18 May 2012 - 02:31 AM
Thank you so much! That'll help a whole lot later on in the map!