- Home /
Quill18's Tutorial Scripts: Unexpected Symbols
Hi there. I'm trying to learn how to make a FPS Multiplayer game. So i'm watching Quill18's tutorial. In episode 6, he makes a script of NetworkCharacter. I copied his script exactly, but i keep getting errors. These are the ones i get:
Assets/NetworkCharacter.cs(24,22): error CS1525: Unexpected symbol public'** **Assets/NetworkCharacter.cs(32,28): error CS1519: Unexpected symbol
else' in class, struct, or interface member declaration
Assets/NetworkCharacter.cs(36,52): error CS1519: Unexpected symbol =' in class, struct, or interface member declaration** **Assets/NetworkCharacter.cs(36,62): error CS1519: Unexpected symbol
)' in class, struct, or interface member declaration
Assets/NetworkCharacter.cs(36,82): error CS1519: Unexpected symbol (' in class, struct, or interface member declaration** **Assets/NetworkCharacter.cs(37,52): error CS1519: Unexpected symbol
=' in class, struct, or interface member declaration
Assets/NetworkCharacter.cs(37,65): error CS1519: Unexpected symbol )' in class, struct, or interface member declaration** **Assets/NetworkCharacter.cs(37,85): error CS1519: Unexpected symbol
(' in class, struct, or interface member declaration
And the strangest ones:
Assets/NetworkCharacter.cs(33,1): error CS8025: Parsing error
Assets/NetworkCharacter.cs(39,17): error CS8025: Parsing error
I don't understand. My script looks like this:
Answer by rutter · Jun 17, 2014 at 08:59 PM
You have unbalanced {}
braces. Specifically, you're not closing the Update
function.
Add an extra }
after line 22.
Thank you rutter. I'm not that good at spotting errors, since i read them directly from the console. Thanks again!