Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spoiler Error While adding music to area Please HELP
meneadeszz Offline
Junior Member

Posts: 20
Threads: 9
Joined: Apr 2012
Reputation: 0
#3
RE: Error While adding music to area Please HELP

(04-17-2012, 04:12 PM)Greven Wrote: Try putting 01_paper_self in quotation marks like this:
PlayMusic("01_paper_self", true, 5, 0, 0, true);
Also at AddCombineCallback("Player", "Music1", "StartMusic", "true", "0)";
Remove the marks at the 0 like this:
AddCombineCallback("Player", "Music1", "StartMusic", "true", 0);
Thanks for helping me i think it work because i don't get the error about the lines.

Butt there is one problem now
I get an error which says unexpected end of line this is the ending of my script at line 126

void Intro(string &in asTimer)
{
string x = asTimer;
if (x == "T1")
{
PlaySoundAtEntity("", "react_sigh.snt", "Player", 0, false);
FadeOut(4);
}
else if (x == "T2")
{
FadeIn(3);
PlaySoundAtEntity("", "react_breath.snt", "Player", 0, false);
StartPlayerLookAt("Intro1", 2, 2, "");
}
else if (x == "T3")
{
StopPlayerLookAt();
StartPlayerLookAt("Intro2, 2, 2, "");
}
else if (x == "T4")
{
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);

StopPlayerLookAt();
}
else if (x == "T5")
{
SetPlayerCrouching(false);
SetPlayerActive(true);
StopPlayerLookAt();
}


}

////////////////////////////
// This runs when the player enters the map
void OnEnter()
{
}

////////////////////////////
// This runs when the player leaves the map
void OnLeave()
{
} THIS IS LINE 119 I GET THE ERRO FOR LINE 126
(This post was last modified: 04-17-2012, 04:25 PM by meneadeszz.)
04-17-2012, 04:24 PM
Find


Messages In This Thread
RE: Error While adding music to area Please HELP - by meneadeszz - 04-17-2012, 04:24 PM



Users browsing this thread: 1 Guest(s)