Smart Games 76 Posted November 22, 2020 Is there a way to define global arrays in the description.ext? Atm i have written them into a .sqf file, but i don`t like the idea to call them via init.sqf. Any ideas? 1 Share this post Link to post Share on other sites
wogz187 1085 Posted November 22, 2020 @Smart Games, Quote Is there a way to define global arrays in the description.ext? Yeah. Lose the array and create a cfg class. description ext. class cfgNotArray { #include "NotArray.hpp" }; notArray.hpp class notArray { class object_name { displayName = "A thing" }; }; But you know this! Have fun! 2 Share this post Link to post Share on other sites
pierremgi 4736 Posted November 22, 2020 I was more on : Passing arrays with more than one element [el1,el2,...] as arguments into macros as well as any argument containing comas "some, sentence", will need a small workaround: #define HINTARG(ARG) hint ("Passed argument: " + str ARG) Incorrect usage: HINTARG([1,2,3,4,5,6,7,8,9,0]); // ERROR, won't even compile Correct usage: #define array1 [1,2,3,4,5,6,7,8,9,0] HINTARG(array1); // SUCCESS copied from BIKI 4 Share this post Link to post Share on other sites