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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Unexpected end of file? (/thread-4847.html) |
Unexpected end of file? - Nemesis751 - 09-30-2010 Hello every one as the thread subject states whenever is try to load my custom story i get "Unexpected end of file" and i cant figure out for the life of me what to do?? This is my simple script /////////////////////////// //Run first time starting map void OnStart() { AddUseItemCallback("", "StorageKey_1", "keydoor_1", "UsedKeyonDoor", true); void UsedKeyonDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked(keydoor_1, false, true); PlaySoundAtEntity("", "guardian_activated1", "Player", 0, false); RemoveItem(StorageKey_1); } //////////////////////////// // Run when entering map void OnEnter() { } //////////////////////////// // Run when leaving map void OnLeave() { } RE: Unexpected end of file? - Equil - 09-30-2010 Code: void OnStart() You're missing a } I think in your OnStart. try: Code: void OnStart() RE: Unexpected end of file? - Nemesis751 - 09-30-2010 You're missing a } I think in your OnStart. try: Code: void OnStart() Thank you every much my friend works fine now ^^ RE: Unexpected end of file? - Equil - 09-30-2010 No problem. |