The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
What does "no matching signatures" mean?
willochill Offline
Member

Posts: 73
Threads: 27
Joined: Apr 2011
Reputation: 0
#1
What does "no matching signatures" mean?

My script keeps crashing, apparently there are "no matching signatures" to the function PlayMusic(string@&, const bool, const double, const uint, const uint). Here's the script, please help! (you really only need to look at the first few lines though I think)

void OnStart()
{
PlayMusic("amb_extra01", true, 0.75, 0, 0);
FadeOut(0);
AddTimer("TimerFirstLook", 3, "FirstLook");
SetPlayerActive(false);
SetPlayerCrouching(true);
FadePlayerRollTo(-90, 100, 100);
AddEntityCollideCallback("key_laboratory_1", "mansion_1", "UnlockFirstDoor", true, 1);
}

void FirstLook (string &in asTimer)
{
FadeIn(3);
AddTimer("TimerFadeOut01", 6, "FadeOut01");
AddTimer("TimerSecondLook", 12, "SecondLook");
}

void FadeOut01(string &in asTimer)
{
FadeOut(3);
}

void SecondLook(string &in asTimer)
{
FadeIn(3);
AddTimer("TimerLook_01", 3, "Look01");
AddTimer("TimerLook_02", 4.5, "Look02");
AddTimer("TimerLook_03", 5.5, "Look03");
AddTimer("TimerLookBack", 7.5, "LookBack");
}


void Look01(string &in asTimer)
{
StartPlayerLookAt("AreaLook01", 1, 1, "");
}

void Look02(string &in asTimer)
{
StopPlayerLookAt();
StartPlayerLookAt("AreaLook02", 1, 1, "");
}

void Look03(string &in asTimer)
{
StopPlayerLookAt();
StartPlayerLookAt("AreaLook03", 1, 1, "");
}

void LookBack(string &in asTimer)
{
StopPlayerLookAt();
StartPlayerLookAt("AreaLookBack", 1, 1, "");
FadeOut(3);
AddTimer("TimerGetUp", 5, "GetUp");
}

void GetUp(string &in asTimer)
{
StopPlayerLookAt();
FadeIn(3);
AddTimer("TimerTurnHead", 3, "TurnHead");
AddTimer("TimerActivatePlayer", 6, "ActivatePlayer");
}

void TurnHead(string &in asTimer)
{
FadePlayerRollTo(0, 80, 90);
}

void ActivatePlayer(string &in asTimer)
{
SetPlayerActive(true);
}

void UnlockFirstDoor(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorLocked("mansion_1", false, false);
}

void OnEnter()
{
}

void OnLeave()
{
}
(This post was last modified: 05-07-2012, 02:57 AM by willochill.)
05-07-2012, 02:56 AM
Find


Messages In This Thread
What does "no matching signatures" mean? - by willochill - 05-07-2012, 02:56 AM



Users browsing this thread: 1 Guest(s)