Jump to content
  • 0
luizragna

playBGM command does not work

Question

Hi guys. I tried use the script command: playBGM, but this problem happens in the console:

 

playBGM "30.mp3";

 

[Error]: script_rid2sd: fatal error ! player not attached!
[Debug]: Function: playBGM (1 parameter):
[Debug]: Data: string value="30.mp3"
[Debug]: Source (NPC): spawn#PayD03 at pay_dun03 (147,137)

 

OBS: I have the 30.mp3 in my BGM folder.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

I managed to fix the console problem. But the audio does not play. I tried change 30.mp3 to 30 but nothing has changed.

pay_dun03,155,128,4	script	Music#PayD03	52,{
  	
  	//playBGM "30";
	playBGM "30.mp3";
	mes "Hi";
	close;
	
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.