Fatal Error [SOLVED] - 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Fatal Error [SOLVED] (/thread-7728.html) |
Fatal Error [SOLVED] - Karai16 - 05-01-2011 There's something wrong with my code, for I get this error message: This is my code, can somebody see what's wrong with it? Code: void OnStart() RE: Fatal Error - Linus Ă…gren - 05-01-2011 The first error is your callback. The callback syntax looks like this: SetEntityPlayerInteractCallback(string& asName, string& asCallback, bool abRemoveOnInteraction); The second one is that you got a small "s" on SetEntityActive. :> RE: Fatal Error - Dalroc - 05-01-2011 Change SetPlayerInteractCallback to SetEntityPlayerInteractCallback RE: Fatal Error - Karai16 - 05-01-2011 Quote:The first error is your callback. The callback syntax looks like this:& Quote:Change Thanks a bunch, "Bob" now spawns when I pick up the key, just like I intended |