Jump to content
swatstar98

Problem with a Mod Scripting

Recommended Posts

It gives me this error  File: music\config.cpp, line 21: /CfgMusic/: 'o' encountered instead of '{'

 

Here you have the code.

#include "BIS_AddonInfo.hpp"

class CfgPatches
{
class WWII
    {
        units[] = {};
        weapons[] = {};
        requiredVersion = 0.1;
        requiredAddons[] = {};
    };
    class Prueba
    {
        units[] = {};
        weapons[] = {};
        requiredVersion = 0.1;
        requiredAddons[] = {};
    };
};
class CfgMusicClasses
{
    class WWII
    {
        displayName = "Musica WWII";
    };    
    class Prueba
    {
        displayName = "Prueba";
    };
};
class CfgMusic  
{ 
    class Band of Brothers
    {
        name = "Main Theme Band of Brothers";
        
        sound[] = {"\music\Band_of_Brothers__Main_theme_Soundtrack.ogg",1,1};
        
        theme = "Lead";
        
        duration = "145";
        
        musicClass = "WWII";
    };
    class The Pacific
    {
        name = "Main Theme The Pacific";
        
        sound[] = {"\music\The_Pacific_soundtrack_main_theme.ogg",1,1};
        
        theme = "Lead";
        
        duration = "178";
        
        musicClass = "Prueba";
    };
    
}; 

 

Share this post


Link to post
Share on other sites

Classnames need to be one word, no spaces.

Band_of_Brothers

 

You also have a double underscore in the filepath.

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

×