Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fatal Error
Athom Offline
Junior Member

Posts: 32
Threads: 6
Joined: Jul 2012
Reputation: 1
#1
Fatal Error

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. Sad 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");
}
}

Current Projects: The Cure 15%
4Shared Download: http://ow.ly/cqjk4
Youtube Video: http://ow.ly/cq2LR
(This post was last modified: 07-18-2012, 06:41 AM by Athom.)
07-18-2012, 06:29 AM
Find
Kazakarumariou Away
An angry man.

Posts: 283
Threads: 8
Joined: Jul 2012
Reputation: 14
#2
RE: Fatal Error

Try using
GiveSanityBoostSmall();
OR
GiveSanityBoost();
07-18-2012, 01:48 PM
Find




Users browsing this thread: 1 Guest(s)