Kydoimos 916 Posted January 18, 2015 Hi all - having a spot of bother with the code below: if (alive Transmission_FailSafe) then {_OpenCBN = openYouTubeVideo "watch?v=jTn7fkNXQ6M";} else {playSound "UAV_Out"; ["<t align = 'center'>STR_ON_Connections_05</t>",STR_ON_Connections_04,true, false, nil, false, false] spawn BIS_fnc_guiMessage;}; Just realised that this particular form of text (ParseText is it?) doesn't recognise my strings - any idea how I'd work them in? Thanks in advance! :D Share this post Link to post Share on other sites
654wak654 25 Posted January 18, 2015 Maybe try to combine them like this: [color="#FF8040"][color="#8B3E2F"][b][[/b][/color][color="#7A7A7A"]"<t align = 'center'>"[/color] [color="#8B3E2F"][b]+[/b][/color] STR_ON_Connections_05 [color="#8B3E2F"][b]+[/b][/color] [color="#7A7A7A"]"</t>"[/color][color="#8B3E2F"][b],[/b][/color]STR_ON_Connections_04[color="#8B3E2F"][b],[/b][/color][color="#000000"]true[/color][color="#8B3E2F"][b],[/b][/color] [color="#000000"]false[/color][color="#8B3E2F"][b],[/b][/color] [color="#000000"]nil[/color][color="#8B3E2F"][b],[/b][/color] [color="#000000"]false[/color][color="#8B3E2F"][b],[/b][/color] [color="#000000"]false[/color][color="#8B3E2F"][b]][/b][/color] [color="#191970"][b]spawn[/b][/color] BIS_fnc_guiMessage[color="#8B3E2F"][b];[/b][/color][/color] Made with KK's SQF to BBCode Converter I don't know if this stupid old method will work, but have you checked the note down below in the localize wiki page? Seems like you can just do that kind of thing unless you need the same text un-centered somewhere. Share this post Link to post Share on other sites
moricky 211 Posted January 19, 2015 [format ["<t align = 'center'>%1</t>",localize "STR_ON_Connections_05"],localize "STR_ON_Connections_04",true, false, nil, false, false] spawn BIS_fnc_guiMessage or [<t align = 'center'>" + localize "STR_ON_Connections_05" + "</t>",localize "STR_ON_Connections_04",true, false, nil, false, false] spawn BIS_fnc_guiMessage Don't forget to use localize. Share this post Link to post Share on other sites
Kydoimos 916 Posted January 19, 2015 @654Wak654 / Moricky - thanks so much for the super swift responses, chaps! :D That's great! As always, it's very much appreciated! Share this post Link to post Share on other sites