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
music error
tokugawa1 Offline
Junior Member

Posts: 37
Threads: 8
Joined: Aug 2012
Reputation: 0
#1
music error

When i launch my map i get an error that says:
main (11,1) ERR: No matching signatures to "PlayMusic(string@&in,string@&in,const bool, const double, const uint, const bool)

Here is my script:

void OnStart()
{
AddEntityCollideCallback("Player", "CheapScare", "MonsterFunction", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_1", "MonsterFunction_two", true, 1);
AddUseItemCallback("", "key_study_1", "castle_4","UsedKeyOnDoor", true);
AddEntityCollideCallback("Player", "Music_1", "PlayMusic", true, 1);
}

void PlayMusic(string&in asParent, string &in asChild, int alState)
{
PlayMusic("", "scary.snt", true, 0.0, 2, 0, true);
}

void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_brute_1", true);
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_5", 0, "");
}

void MonsterFunction_two(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_6", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_7", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_8", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_9", 0, "");
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("castle_4", false, true);
PlaySoundAtEntity("", "unlock_door", "castle_4", 0.0f, false);
RemoveItem("key_study_1");
}
08-20-2012, 08:20 PM
Find


Messages In This Thread
music error - by tokugawa1 - 08-20-2012, 08:20 PM
RE: music error - by lolmaster - 08-20-2012, 08:20 PM
RE: music error - by tokugawa1 - 08-20-2012, 08:26 PM
RE: music error - by Robby - 08-20-2012, 08:28 PM
RE: music error - by tokugawa1 - 08-20-2012, 08:36 PM
RE: music error - by Mackiiboy - 08-20-2012, 08:43 PM
RE: music error - by Your Computer - 08-20-2012, 08:34 PM
RE: music error - by tokugawa1 - 08-20-2012, 08:45 PM
RE: music error - by Adny - 08-20-2012, 08:46 PM
RE: music error - by tokugawa1 - 08-20-2012, 08:54 PM
RE: music error - by lolmaster - 08-20-2012, 09:20 PM
RE: music error - by Your Computer - 08-20-2012, 10:01 PM
RE: music error - by tokugawa1 - 08-20-2012, 10:50 PM
RE: music error - by Robby - 08-22-2012, 12:21 PM



Users browsing this thread: 3 Guest(s)