String Array
#3

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
You would need a 4. dimension which isn't supported by the native compiler
Even if you put them together the compiler would complain that the arrays have different sizes

But you can do a little trick and remove 1 dimension
PHP код:
new _array[][][] = 
{
    {
        
"text array 1""text array 1.5",
        
"text array 1 - 2""text array 1.5 - 2"
    
},
    {
        
"text array 2""text array 2.5"
    
}
};
#define array[%0][%1][%2] _array[%0][(2 * (%1)) + (%2)] 
You could use a macro to simulate the additional dimension or add the calculation each time
Thanks! It works perfectly
Reply


Messages In This Thread
String Array - by DragonZafiro - 23.02.2016, 22:32
Re: String Array - by Nero_3D - 24.02.2016, 00:30
Respuesta: Re: String Array - by DragonZafiro - 24.02.2016, 03:02

Forum Jump:


Users browsing this thread: 2 Guest(s)