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 help
theodorg Offline
Junior Member

Posts: 44
Threads: 11
Joined: Aug 2013
Reputation: 0
#1
music help

Why isnt this music script working??
{
void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);
PlayMusic(creep.ogg, false, 1, 1, 1, true);
}
08-24-2014, 06:58 PM
Find
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#2
RE: music help

(08-24-2014, 06:58 PM)theodorg Wrote: Why isnt this music script working??
{
void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);
PlayMusic("creep.ogg", false, 1, 1, 1, true);
}

It is suppose to look like this

PHP Code: (Select All)
void OnStart()
{
PlayMusic(creep.oggfalse111true);


(This post was last modified: 08-24-2014, 07:04 PM by Radical Batz.)
08-24-2014, 07:00 PM
Find
theodorg Offline
Junior Member

Posts: 44
Threads: 11
Joined: Aug 2013
Reputation: 0
#3
RE: music help

(08-24-2014, 07:00 PM)Dr.Badcat Wrote:
(08-24-2014, 06:58 PM)theodorg Wrote: Why isnt this music script working??
{
void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);
PlayMusic(creep.ogg, false, 1, 1, 1, true);
}

It is suppose to look like this

PHP Code: (Select All)
void OnStart()
{
PlayMusic(creep.oggfalse111true);


oh thx
08-24-2014, 07:03 PM
Find
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#4
RE: music help

void OnStart()
{
      PlayMusic("creep.ogg", false, 1, 1, 1, true);
}

No quotes in PlayMusic. Added them there for you.

And I'm assuming you don't have a void OnStart in the script?

Derp.
08-24-2014, 07:04 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#5
RE: music help

(08-24-2014, 07:00 PM)Dr.Badcat Wrote:
(08-24-2014, 06:58 PM)theodorg Wrote: Why isnt this music script working??
{
void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);
PlayMusic("creep.ogg", false, 1, 1, 1, true);
}

It is suppose to look like this

PHP Code: (Select All)
void OnStart()
{
PlayMusic(creep.oggfalse111true);


badcat, next time you want to help someone tell then the right thing...
The creep must have "creep"...
08-24-2014, 08:17 PM
Find
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#6
RE: music help

(08-24-2014, 08:17 PM)DnALANGE Wrote:
(08-24-2014, 07:00 PM)Dr.Badcat Wrote:
(08-24-2014, 06:58 PM)theodorg Wrote: Why isnt this music script working??
{
void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);
PlayMusic("creep.ogg", false, 1, 1, 1, true);
}

It is suppose to look like this

PHP Code: (Select All)
void OnStart()
{
PlayMusic(creep.oggfalse111true);


badcat, next time you want to help someone tell then the right thing...
The creep must have "creep"...

I forgot coding XD What do you want me to do?

I haven't coded like in about 2 months

(This post was last modified: 08-24-2014, 08:23 PM by Radical Batz.)
08-24-2014, 08:19 PM
Find




Users browsing this thread: 2 Guest(s)