Frictional Games Forum (read-only)

Full Version: Fatal Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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");
}
}
Try using
GiveSanityBoostSmall();
OR
GiveSanityBoost();