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: Fatal Error (/thread-17066.html) |
Fatal Error - Athom - 07-18-2012 Hey everybody. Not to be a bother, but Im having a fatal error that says its on line 99. Im guessing its a syntax error. Here is the block that contains line 99 (as it is sometimes a little bit off) The full area part of the code is as follows main(99, 1) : ERR : No matching signatures to 'GiveSanityBoost(const float, const bool)' void LeverPulled(string &in asEntity, int alState) { if(GetLocalVarInt("Sequence") == 0 && asEntity == "lever_2") { AddLocalVarInt("Sequence", 1); SetLeverStuckState(asEntity, alState, true); PlaySoundAtEntity("", "27_tunnel.snt", "Player", 0, false); } if(GetLocalVarInt("Sequence") == 1 && asEntity == "lever_1") { AddLocalVarInt("Sequence", 1); SetLeverStuckState(asEntity, alState, true); PlaySoundAtEntity("", "27_tunnel.snt", "Player", 0, false); } if(GetLocalVarInt("Sequence") == 2 && asEntity == "lever_3") { AddLocalVarInt("Sequence", 1); SetLeverStuckState(asEntity, alState, true); SetMoveObjectState("shelf_secret_door_1", 1); PlaySoundAtEntity("", "scrape_wood_heavy.snt", "Player", 0, false); PlaySoundAtEntity("", "27_tunnel.snt", "Player", 0, false); GiveSanityBoost(25.0f, true); {THIS IS LINE 99!} PlaySoundAtEntity("", "enabled01.snt", "Player", 0, false); AddTimer("StaggerMonsterNoise", 1, "StaggerMonsterNoise"); } } RE: Fatal Error - Kazakarumariou - 07-18-2012 Try using GiveSanityBoostSmall(); OR GiveSanityBoost(); |