![]() |
Help! Script error!! - 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: Help! Script error!! (/thread-13899.html) |
Help! Script error!! - xxR3LoaD3dxx - 03-10-2012 So I am working on my custom story and I have a scripted sequence that is set to start 1 second after player collides with a script area. I will qoute the file below, upon entering the map it says there is some kind of error with the signature on the AddEntityCollideCallback that I have, I don't see anything wrong with it. granted im not a pro scripter ![]() Please help! I have put alot of work into what I have so far and want to keep making progress on it so i can put it up on ModDB. Please and thank you for your help ![]() Quote: ////////////// RE: Help! Script error!! - UnseenLegend ( NL ) - 03-10-2012 PHP Code: void ChaseSequence(string &in asTimer) PHP Code: if (GetLocalVarInt("iIntroPart") <3) When you add script functions, without using it. The error wont show what the problem is. sometime... RE: Help! Script error!! - Apjjm - 03-10-2012 Actually, the problem is that you are missing an "l" in AddEntityCollideCallback: Code: ////////////// RE: Help! Script error!! - xxR3LoaD3dxx - 03-10-2012 Thanks ![]() (03-10-2012, 10:09 PM)UnseenLegend ( NL ) Wrote: Thanks ![]() (03-10-2012, 11:07 PM)Apjjm Wrote: Actually, the problem is that you are missing an "l" in AddEntityCollideCallback: RE: Help! Script error!! - UnseenLegend ( NL ) - 03-11-2012 (03-10-2012, 11:07 PM)Apjjm Wrote: Your bracketing on the switch statement is fine.Wait What ? When i do this. } AddEntityCollideCallback("Player", "ChaseStart", "ChaseStartFunc", true, 1); } Will the trigger be not active. Second when you got fatal error, you cannot find where the problem is. mostly.. When you getting a fatal error check first on bracketing. It saves you time believe me. RE: Help! Script error!! - Apjjm - 03-11-2012 Syntactically, the braces were fine: the interpreter will always throw bracketing errors before any errors to do with function signatures. If you re-read the first post you will notice that the error reported is a function signature error. If a bracketing error occurs the interpreter will not look for errors past that stage and as such a bracketing error could not have been the source of the problem reported. If you want to test this, try: Code: void errorMe() { { Invalid_Function_Name(123); } |