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 problem?
Zypherzemus Offline
Member

Posts: 94
Threads: 7
Joined: Jul 2011
Reputation: 0
#11
RE: Music problem?

////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "girlsdormkey_1", "girlsdorm", "UsedKeyOnDoor_5", true);
if (GetGlobalInt("music") == 0)
{
PlayMusic("02_amb_safe.ogg", true, 100.0, 0.0, 1, true);
}
else if (GetGlobalInt("music") == 1)
{
PlayMusic("09_amb_safe.ogg", true, 100.0, 0.0, 1, true);
}
}



void UsedKeyOnDoor_5(string &in asItem, string &in asEntity)
{
    SetLevelDoorLocked("girlsdormdoor", false);
    PlaySoundAtEntity("", "unlock_door", "girlsdormdoor", 0, false);
    RemoveUseItemCallback("girlsdormkey_1");
}


////////////////////////////
// Run when leaving map
void OnLeave()
{
StopMusic(1.0f, 1);
SetGlobalVarInt("music", 1);
}

I get an Error:
(108, 5): No Matching signatures
(112, 10) No matching signatures

I put everything in the correct place
07-07-2011, 02:47 AM
Find


Messages In This Thread
Music problem? - by Zypherzemus - 07-06-2011, 05:00 AM
RE: Music problem? - by Juby - 07-06-2011, 11:21 AM
RE: Music problem? - by Zypherzemus - 07-06-2011, 05:37 PM
RE: Music problem? - by DRedshot - 07-06-2011, 05:50 PM
RE: Music problem? - by Zypherzemus - 07-07-2011, 01:28 AM
RE: Music problem? - by Zypherzemus - 07-06-2011, 11:00 PM
RE: Music problem? - by Tanshaydar - 07-06-2011, 11:07 PM
RE: Music problem? - by DRedshot - 07-06-2011, 11:18 PM
RE: Music problem? - by Tanshaydar - 07-06-2011, 11:25 PM
RE: Music problem? - by DRedshot - 07-07-2011, 01:41 AM
RE: Music problem? - by Zypherzemus - 07-07-2011, 02:47 AM
RE: Music problem? - by DRedshot - 07-07-2011, 12:43 PM
RE: Music problem? - by Zypherzemus - 07-07-2011, 07:36 PM
RE: Music problem? - by Zypherzemus - 07-07-2011, 10:27 PM
RE: Music problem? - by DRedshot - 07-08-2011, 02:01 AM



Users browsing this thread: 1 Guest(s)