Jump to content
  • 0

error


ShadowRB

Question

can help me here just get an error

 

 

 

 

 

class CfgRemoteExecCommands {};

class CfgSounds
{
//*******************
    sounds[] = {};
    class radio1
    {
        name = "radio01";
        // filename, volume, pitch
        sound[] = {"radio01.ogg",1,1};
        titles[] = {0,""};
    };
//*******************

    sounds[] = {};
    
    class intro
    {
        name = "intro";
        sound[] = {"\sounds\intro.ogg", 1.0, 1};
        titles[] = {};
    };
    
    
};

class RscTitles
{
//************************
    class radioChatterBar {
        idd = -1;
        onLoad = "uiNamespace setVariable ['radioChatterBar', _this select 0]";
        onUnload = "uiNamespace setVariable ['radoiChatterBar', objNull]";
        onDestroy = "uiNamespace setVariable ['radioChatterBar', objNull]";
        fadein = 0;
        fadeout = 10;
        duration = 10e10;
        movingEnable = 0;
        controlsBackground[] = {};
        objects[] = {};
        class controls {
            class statusBarText {
                idc = 1010;
                x = safezoneX;
                y = safezoneY; // upper left hand corner
                //x = safezoneX + safezoneW - 1.5;
                //y = safezoneY + safezoneH - 0.4; //H
                w = 1;
                h = 0.3;  //hopefully makes it 10 lines tall
                shadow = 2;
                colorBackground[] = { 1, 0.3, 0, 0.0 };  // uncomment and increase 4th number to have a     background
                font = "PuristaSemibold";
                size = 0.03;
                type = 13;// CT_TYPES = CT_STRUCTURED_TEXT
                style = 1;
                text="Loading server info...";
                class Attributes {
                    align="left";
                    color = "#FFFFFF"; //"#00FF09";BrightGreen   //#FF8700
                };
            };
        };
    };
//***********************************
};

{
    #include "scripts\statusBar.hpp"
};  

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0
class CfgSounds
{
//*******************
    sounds[] = {};
    class radio1
    {
        name = "radio01";
        // filename, volume, pitch
        sound[] = {"radio01.ogg",1,1};
        titles[] = {0,""};
    };
//**********************
};
class RscTitles
{
#include "scripts\statusBar.hpp"
//************************
    class radioChatterBar {
        idd = -1;
        onLoad = "uiNamespace setVariable ['radioChatterBar', _this select 0]";
        onUnload = "uiNamespace setVariable ['radoiChatterBar', objNull]";
        onDestroy = "uiNamespace setVariable ['radioChatterBar', objNull]";
        fadein = 0;
        fadeout = 10;
        duration = 10e10;
        movingEnable = 0;
        controlsBackground[] = {};
        objects[] = {};
        class controls {
            class statusBarText {
                idc = 1010;
                x = safezoneX;
                y = safezoneY; // upper left hand corner
                //x = safezoneX + safezoneW - 1.5;
                //y = safezoneY + safezoneH - 0.4; //H
                w = 1; 
                h = 0.3;  //hopefully makes it 10 lines tall
                shadow = 2;
                colorBackground[] = { 1, 0.3, 0, 0.0 };  // uncomment and increase 4th number to have a 	background
                font = "PuristaSemibold";
                size = 0.03;
                type = 13;// CT_TYPES = CT_STRUCTURED_TEXT
                style = 1;
                text="Loading server info...";
                class Attributes {
                    align="left";
                    color = "#FFFFFF"; //"#00FF09";BrightGreen   //#FF8700
                };
            };
        };
    };
//***********************************
};
Link to comment
Share on other sites

  • 0

You're trying to define two different sound types in two different places.  Try this code:

class CfgSounds
{
//*******************
    sounds[] = {};
    class radio1
    {
        name = "radio01";
        // filename, volume, pitch
        sound[] = {"radio01.ogg",1,1};
        titles[] = {0,""};
    };

    class intro
      {
        name = "intro";
        sound[] = {"\sounds\intro.ogg", 1.0, 1};
        titles[] = {};
      };
//**********************
};
class RscTitles
{
#include "scripts\statusBar.hpp"
//************************
    class radioChatterBar {
        idd = -1;
        onLoad = "uiNamespace setVariable ['radioChatterBar', _this select 0]";
        onUnload = "uiNamespace setVariable ['radoiChatterBar', objNull]";
        onDestroy = "uiNamespace setVariable ['radioChatterBar', objNull]";
        fadein = 0;
        fadeout = 10;
        duration = 10e10;
        movingEnable = 0;
        controlsBackground[] = {};
        objects[] = {};
        class controls {
            class statusBarText {
                idc = 1010;
                x = safezoneX;
                y = safezoneY; // upper left hand corner
                //x = safezoneX + safezoneW - 1.5;
                //y = safezoneY + safezoneH - 0.4; //H
                w = 1; 
                h = 0.3;  //hopefully makes it 10 lines tall
                shadow = 2;
                colorBackground[] = { 1, 0.3, 0, 0.0 };  // uncomment and increase 4th number to have a 	background
                font = "PuristaSemibold";
                size = 0.03;
                type = 13;// CT_TYPES = CT_STRUCTURED_TEXT
                style = 1;
                text="Loading server info...";
                class Attributes {
                    align="left";
                    color = "#FFFFFF"; //"#00FF09";BrightGreen   //#FF8700
                };
            };
        };
    };
//***********************************
};

Double check and make sure the relative paths to your audio files are correct and you should be good.  

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...