Jump to content
Sign in to follow this  
Intact

Problem with cfgMusic in description

Recommended Posts

Hi

I just wanted to play around with the editor and decided to add a few custom sounds. However, when I try to play the mission now I get this error:

"... line 9: '/CfgMusic.': ':' encountered instead of '=' "

Could someone please help me fix this? Thank you

My description.ext:

class CfgMusic

{

tracks[]={};

class music1

{

name = "";

sound[] = {\music\music1.ogg, db+1, 1.0};

}:

class nuke

{

name = "";

sound[] = {"\nuke\nuke.ogg", db+0, 1.0};

}:

}:

Share this post


Link to post
Share on other sites

[color=#333333]class CfgMusic [/color]
[color=#333333]{ [/color]
[color=#333333]tracks[]={}; [/color]

[color=#333333]class music1[/color]
[color=#333333]{[/color]
[color=#333333]name = "";[/color][color=#008000][b][b]<----- [/b][b]name it[/b][/b][/color]
[color=#333333]sound[] = {\music\music1.ogg, db+1, 1.0};   [/color][color=#008000][b]<----- missing [/b][b]""[/b][/color]
[color=#333333]}:[/color][color=#008000][b] <-----  : instead of :[/b][/color]
[color=#333333]class nuke[/color]
[color=#333333]{[/color]
[color=#333333]name = "";[/color][color=#008000] [b]<-----  name it[/b][/color]
[color=#333333]sound[] = {"\nuke\nuke.ogg", db+0, 1.0};[/color]
[color=#333333]}:[/color][b][color=#008000] <-----  : instead of :[/color][/b]
[color=#333333]}:[/color] [color=#008000][b]<-----  : instead of : [/b][/color] 

I think below is correct...

[color=#3E3E3E]class CfgMusic [/color]
[color=#3E3E3E]{ [/color]
[color=#3E3E3E]tracks[]={}; [/color]

[color=#3E3E3E]class music1[/color]
[color=#3E3E3E]{[/color]
[color=#3E3E3E]name = "music1";[/color]
[color=#3E3E3E]sound[] = {"\music\music1.ogg", db+1, 1.0}; [/color]
[color=#3E3E3E]};[/color]
[color=#3E3E3E]class nuke[/color]
[color=#3E3E3E]{[/color]
[color=#3E3E3E]name = "nuke";[/color]
[color=#3E3E3E]sound[] = {"\nuke\nuke.ogg", db+0, 1.0};[/color]
[color=#3E3E3E]};[/color]
[color=#3E3E3E]};[/color]

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×