[Script Error Help] Crash because of a "}"?!? - 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 Error Help] Crash because of a "}"?!? (/thread-13000.html) |
[Script Error Help] Crash because of a "}"?!? - Rokotain - 01-31-2012 Ok, everything is working neatly. Just got some inspiration back. And haven't had any problems in a while. Then suddenly, my previous working script for the map crashes when I load the map! But there is no valid reason for it. It says the error expected thing, with the "27, 1". That means it's on line 27 of the script right? Problem is the only thing there is a "}" to close a void. Lines 17 - 27 Quote:void HiddenAreaEntered(string &in asParent, string &in asChild, int alState) I tried removing it. But then the error message just jumped to saying it's on line 74. Which is the last line of the script. Also containing a "}" from the end of the void onLeave thing. Any idea why the error is upset with my previous working and normal }'s ? It's very annoying, I even tried deleting the .hps file and making it new. But still crashes with the error. RE: [Script Error Help] Crash because of a "}"?!? - FinBanana - 01-31-2012 On the last line, shouldn't it have a ; like this: AddTimer("", 1, "LookEventStop"); RE: [Script Error Help] Crash because of a "}"?!? - UnseenLegend ( NL ) - 01-31-2012 And give everything a Space bar So the error shows what you did wrong RE: [Script Error Help] Crash because of a "}"?!? - Rokotain - 01-31-2012 Thank you, silly me didn't realise I forgot the ";" x) It works again now, I think I had same problem before that the level editor mentiones the "}" instead of the line above which actually is the error. So now I've given them spaces. Thanks again and sorry for consuming time with a minor memory slip^^! RE: [Script Error Help] Crash because of a "}"?!? - flamez3 - 02-01-2012 FYI, the line isn't always the the correct line. It means there is a error in the function that is closet to the line indicated in the error c: |