error CS1010: Newline in constant

It’s just a typo. If you’re following a tutorial then you need to follow it more carefully and exactly. The errors tell you the lines of your typo so all you have to do is look at the tutorial and check those lines or the lines in that area.

Also, when posting code, please don’t use plain-text, use code-tags and ensure the errors you have (which give you line/column numbers) match up to the lines in your editor. Just post the full script and they will.

Without this, you’re asking someone here to read through the unformatted plain-text and manually count the line numbers and even assume they are the same thing. You can edit your post above to include code-tags.

1 Like