main (8,9) : ERR :Expected identifer Fatal 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: main (8,9) : ERR :Expected identifer Fatal error (/thread-19213.html) |
main (8,9) : ERR :Expected identifer Fatal error - Steveblockenstein - 11-13-2012 I got this Fatal Error that says this FATAL ERROR: Could not load script file 'custom_stories/Cellar/maps/Somethingsoon.hps'! main (8,9) : ERR : Expected identifer My hps file looks like this //////////////////////////// // Run when entering map void OnEnter() { AddUseItemCallback("", "key_dungeon", "level_celler_1", UsedKeyOnDoor, true); } MyFunc(string &in asItem, string &in asEntity) { void SetSwingDoorLocked("level_celler_1", false, true); void PlaySoundAtEntity("","unlock_door", "level_celler_1", 0, true); RemoveItem(key_dungeon); } //////////////////////////// // Run when leaving map void OnLeave() { } -Steveblockenstein RE: main (8,9) : ERR :Expected identifer Fatal error - Tomato Cat - 11-13-2012 (11-13-2012, 09:04 PM)Steveblockenstein Wrote: ////////////////////////////There's your problem. It should be.. Quote:MyFunc(string &in asItem, string &in asEntity) And BTW there's a forum for this. RE: main (8,9) : ERR :Expected identifer Fatal error - FlawlessHappiness - 11-13-2012 What do you mean, there is a forum? He is in the right forum. RE: main (8,9) : ERR :Expected identifer Fatal error - Your Computer - 11-13-2012 (11-13-2012, 09:28 PM)beecake Wrote: What do you mean, there is a forum? He is in the right forum. That's 'cause i moved it to the right forum. RE: main (8,9) : ERR :Expected identifer Fatal error - FlawlessHappiness - 11-13-2012 Aaah RE: main (8,9) : ERR :Expected identifer Fatal error - The chaser - 11-13-2012 And: //////////////////////////// // Run when entering map void OnEnter() { AddUseItemCallback("", "key_dungeon", "level_celler_1", UsedKeyOnDoor, true); } UsedKeyOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("level_celler_1", false, true); PlaySoundAtEntity("","unlock_door", "level_celler_1", 0, true); RemoveItem("key_dungeon"); } This should be right. Ctrl+C Ctrl+V it. RE: main (8,9) : ERR :Expected identifer Fatal error - Cranky Old Man - 11-13-2012 (11-13-2012, 10:06 PM)The chaser Wrote: UsedKeyOnDoor(string &in asItem, string &in asEntity) It's been awhile since I did this, but shouldn't it be void UsedKeyOnDoor(string &in asItem, string &in asEntity) ? RE: main (8,9) : ERR :Expected identifer Fatal error - The chaser - 11-13-2012 (11-13-2012, 11:03 PM)Cranky Old Man Wrote:It's true, silly me(11-13-2012, 10:06 PM)The chaser Wrote: UsedKeyOnDoor(string &in asItem, string &in asEntity) RE: main (8,9) : ERR :Expected identifer Fatal error - Tomato Cat - 11-13-2012 (11-13-2012, 11:03 PM)Cranky Old Man Wrote:Oh, I missed that. =o(11-13-2012, 10:06 PM)The chaser Wrote: UsedKeyOnDoor(string &in asItem, string &in asEntity) |