+- 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] Unexpected Token "{" (/thread-13466.html)
RE: Unexpected Token "{" - Your Computer - 02-20-2012
Code blocks should only be as part of a function definition or conditional statement, an array or enum declaration, or be a nested code block (and anything else i may have missed). The code block the error is pointing to does not follow those rules. Also, void shouldn't be capitalized.
(02-20-2012, 10:14 PM)Your Computer Wrote: Code blocks should only be as part of a function definition or conditional statement, an array or enum declaration, or be a nested code block (and anything else i may have missed). The code block the error is pointing to does not follow those rules. Also, void shouldn't be capitalized.
Ok so, I apologize if this seems annoying or naive, but... what?
(02-21-2012, 02:35 AM)Juby Wrote: Well, basically you capitalized "void" in the very first function and you put a "AddEntityCollideCallback" in a no-good spot.