Jump to content
  • 0

playBGM command does not work


luizragna

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   27
  • Joined:  02/12/14
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   27
  • Joined:  02/12/14
  • Last Seen:  

I solved only changed the command.

playbgmall "30";

 

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

the filename is '30' not '30.mp3' for playbgm

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   27
  • Joined:  02/12/14
  • Last Seen:  

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...