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
Custom error? music won't work
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#1
Sad  Custom error? music won't work

I'm trying to make a soundtrack in my custom story and whenever I load it, it gets me this error message "FATAL ERROR:Could not load script ile
'custom_stories/Name/maps/Name.hps'!
main(3,7):ERRBig Grinata type can't be 'void'
main (3,16):ERR:Only objects have constructors

and here is my hps file:



void OnStart()
{
void PlayMusic("06_amb.ogg", true, 0.3, 4, 1, false);
}

void OnEnter()
{

}

void OnLeave()
{

}

Do you see anything wrong because I don't
(This post was last modified: 12-28-2013, 07:38 PM by Radical Batz.)
12-28-2013, 05:26 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#2
RE: Custom error? music won't work

ONLY : PlayMusic("music_cellar_post_pigsmash1.ogg", true, 0.3, 3, 0, true);
You don't need a void there.
12-28-2013, 05:45 PM
Find
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#3
RE: Custom error? music won't work

(12-28-2013, 05:45 PM)DnALANGE Wrote: ONLY : PlayMusic("music_cellar_post_pigsmash1.ogg", true, 0.3, 3, 0, true);
You don't need a void there.
thank you, now it works
12-28-2013, 07:38 PM
Find




Users browsing this thread: 3 Guest(s)