Error missing 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: Error missing a ";" (/thread-16341.html) |
Error missing a ";" - Hartmann - 06-20-2012 i get an error saying i miss a ; but i cant find it. can you? void OnStart() { AddUseItemCallback("", "key_1", "mansion_1", "KeyOnDoor", true); AddUseItemCallback("", "key_2", "mansion_2", "KeyOnDoor_2", true); AddUseItemCallback("", "key_3", "mansion_5", "KeyOnDoor_5", true); SetEntityPlayerInteractCallback("key_3", "ActivateMonster", true); } void KeyOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("mansion_1", false, true); PlaySoundAtEntity("", "unlock_door", "mansion_1", 0.0f, true); RemoveItem("key_1"); } void KeyOnDoor_2(string &in asItem, string &in asEntity) { SetSwingDoorLocked("mansion_2", false, true); PlaySoundAtEntity("", "unlock_door", "mansion_2", 0.0f, true); RemoveItem("key_2"); } void KeyOnDoor_5(string &in asItem, string &in asEntity) { SetSwingDoorLocked("mansion_5", false, true); PlaySoundAtEntity("", "unlock_door", "mansion_5", 0.0f, true); RemoveItem("key_3"); } //////////////////////////// // Run when leaving map void OnLeave() { } void ActivateMonster(string &in item) { SetEntityActive("servant_grunt_1"), true); } RE: Error missing a ";" - Traggey - 06-20-2012 Moved to development support. RE: Error missing a ";" - Stepper321 - 06-20-2012 Post the error. And I will tell you how to find it yourself! RE: Error missing a ";" - Apjjm - 06-20-2012 You had an extra bracket in void ActivateMonster(string &in item) { SetEntityActive("servant_grunt_1" ), true); } try: Code: void ActivateMonster(string &in item) RE: Error missing a ";" - Hartmann - 06-21-2012 (06-20-2012, 09:29 PM)Apjjm Wrote: You had an extra bracket inty! |