I have an if statement that doesn't want to go as i want it to...
ERR: No matching signatures to 'ChangeCharacterMark()'
INFO: Candidates are:
INFO: void ChangeCharacterMark(string&in)
ERR: No matching signatures to 'ChangeCharacterSimon()'
INFO: Candidates are:
INFO: void ChangeCharacterSimon(string&in)
Here is the if statement:
And here are the 2 scripts:
Spoiler below!
void ChangeCharacterSimon(string &in asEntity)
{
FadeOut(2);
SetPlayerActive(false);
CheckPoint("Simon", "SimonStart", "", "DeathHints", "NormalDeath");
PlaySoundAtEntity("", "insanity_whisper", "Player", 0.5f, false);
FadePlayerFOVMulTo(2, 2.0f);
AddTimer("ChangeCharacterSimonTimer", 2, "ChangeCharacterSimonTimer");
}
void ChangeCharacterMark(string &in asEntity)
{
FadeOut(2);
SetPlayerActive(false);
CheckPoint("Mark", "MarkStart", "", "DeathHints", "NormalDeath");
PlaySoundAtEntity("", "insanity_whisper", "Player", 0.5f, false);
FadePlayerFOVMulTo(2, 2.0f);
AddTimer("ChangeCharacterMarkTimer", 2, "ChangeCharacterMarkTimer");
}
I can't say what i have to do with ChangeCharacterMark(); and ChangeCharacterSimon();
Can anobody help?
EDIT: If i write something inside the () then it says "Expected ("
Trying is the first step to success.