[SCRIPT] Script problem. ( Unexpected End of File) - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [SCRIPT] Script problem. ( Unexpected End of File) (/thread-28275.html) |
Script problem. ( Unexpected End of File) - Nikson. - 12-22-2014 I've been testing out switch case Statements to make random scares. I've used this tutorial: https://wiki.frictionalgames.com/hpl2/tutorials/script/random_scares And I get a Unexpected End of File error. (Yes I know I haven't put anything in the cases.) Code: void OnStart() RE: Script problem. ( Unexpected End of File) - Mudbill - 12-23-2014 You are missing a bracket. Be careful with those. Add another closing on at the end, because as it is, it only closes the switch, not the function it is within. This is why indentation is good. RE: Script problem. ( Unexpected End of File) - Nikson. - 12-23-2014 Oooooh, That's so silly! I knew that! I was like: 3 brackets? I even tried to put them, but I did that in the wrong place! Thanks, Mudbill you're great! |