Jump to content
Sign in to follow this  
Vanezi

config.cpp/CfgMusic/:'-' encountered instead of "{"

Recommended Posts

The error "config.cpp/CfgMusic/:'-' encountered instead of "{" " Comes every time i try to play the game with my addon, could someone help me please?

Share this post


Link to post
Share on other sites

Doesn't look like anything major.There's a problem in the syntax/structure.

Being able to see the code would help though.

:)

(Looks like I was typing while the Prof was posting) :)

Edited by Macser

Share this post


Link to post
Share on other sites

class CfgPatches

{

class Music1

{

units[] = {};

weapons[] = {};

requiredVersion = 1.01;

};

};

class CfgMusic

{

class Skeletons

{

name="Skeletons";

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

titles[]={};

};

class Cleanse

{

name="Cleanse";

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

titles[]={};

};

class Hellbent1

{

name="Hellbent1";

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

titles[]={};

};

class Sabaton

{

name="Sabaton";

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

titles[]={};

};

class Deathammer

{

name="Deathammer";

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

titles[]={};

};

class Deathrash

{

name="Deathrash";

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

titles[]={};

};

class Crooked

{

name="Crooked";

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

titles[]={};

};

class Stones

{

name="Stones";

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

titles[]={};

};

class Babylon

{

name="Babylon";

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

titles[]={};

};

class T-80U

{

name="T-80U";

sound[]={"\Music1\T-80U.ogg",db+0, 1.0};

titles[]={};

};

class Morbid

{

name="Morbid";

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

titles[]={};

};

class Lepra

{

name="Lepra";

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

titles[]={};

};

class Eagles

{

name="Eagles";

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

titles[]={};

};

Share this post


Link to post
Share on other sites

Try taking out the "-" in the class "T-80U".

So you have class T80U.

As far as I'm aware,you can't have operators in a class name.It would seem to fit the bill too.

As that operator appears just before the curled brackets,that open that class.

By operators I mean mathematical signs.

-,+,* etc.

Edited by Macser

Share this post


Link to post
Share on other sites
Try taking out the "-" in the class "T-80U".

So you have class T80U.

As far as I'm aware,you can't have operators in a class name.It would seem to fit the bill too.

As that operator appears just before the curled brackets,that open that class.

By operators I mean mathematical signs.

-,+,* etc.

Hehe, well done :)

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  

×