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
if - NoMatchingSignatures
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#2
RE: if - NoMatchingSignatures

The clue is in the signatures for each function:

void ChangeCharacterSimon(string &in asEntity)
void ChangeCharacterMark(string &in asEntity)

As you can see - they are expecting a string parameter (which isn't being used inside the functions currently). The solution is to either change the signatures so they no longer use this parameter, I.e:

void ChangeCharacterSimon()
{
   //stuff...
}
void ChangeCharacterMark()
{
   //stuff...
}

OR pass a parameter in (in this case i am assuming you want to pass in "asEntity" from the calling function):
void NextLevelCheck(string &in asEntity)
{
if(asEntity == "AreaSimon")
{
if(GetLocalVarInt("SimonReady") == 1 && GetLocalVarInt("MarkReady") == 1)
{
ChangeCharacterMark(asEntity);
return;
}
}

if(asEntity == "AreaMark")
{
if(GetLocalVarInt("SimonReady") == 1 && GetLocalVarInt("MarkReady") == 1)
{
ChangeCharacterSimon(asEntity);
return;
}

}

if(GetLocalVarInt("SimonReady") == 0)
{
SetMessage("Messages", "NotDone", 0);
}

if(GetLocalVarInt("MarkReady") == 0)
{
SetMessage("Messages", "NotDone", 0);
}
}
(This post was last modified: 08-14-2012, 05:50 PM by Apjjm.)
08-14-2012, 05:49 PM
Find


Messages In This Thread
if - NoMatchingSignatures - by FlawlessHappiness - 08-14-2012, 04:34 PM
RE: if - NoMatchingSignatures - by Apjjm - 08-14-2012, 05:49 PM



Users browsing this thread: 2 Guest(s)