ShadowRB Posted February 25, 2015 Report Share Posted February 25, 2015 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 More sharing options...
0 stonXer Posted February 25, 2015 Report Share Posted February 25, 2015 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 More sharing options...
0 ShadowRB Posted February 25, 2015 Author Report Share Posted February 25, 2015 where comes out the sounds[] = {}; class intro { name = "intro"; sound[] = {"\sounds\intro.ogg", 1.0, 1}; titles[] = {}; }; Link to comment Share on other sites More sharing options...
0 Darth_Rogue Posted February 25, 2015 Report Share Posted February 25, 2015 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 More sharing options...
0 fr1nk Posted February 25, 2015 Report Share Posted February 25, 2015 ^What that guy said Link to comment Share on other sites More sharing options...
0 ShadowRB Posted February 25, 2015 Author Report Share Posted February 25, 2015 thx Darth_Rogue Darth_Rogue 1 Link to comment Share on other sites More sharing options...
0 stonXer Posted February 25, 2015 Report Share Posted February 25, 2015 ^ sorry missed 1 :) Link to comment Share on other sites More sharing options...
Question
ShadowRB
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
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now