SA-MP Forums Archive
Using '...' on multidimensional arrays with enums - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Using '...' on multidimensional arrays with enums (/showthread.php?tid=428201)



Using '...' on multidimensional arrays with enums - trollkemada - 04.04.2013

Is this any way of make this working?

Код:
new test[10] = { 1, ... }; // Works :D

enum testEnum {
    name[128],
    surename[128],
};

new test2[10][testEnum] = { {"John", "Smith"} , ... } // Works :D

new test3[2][10][testEnum] = {
{
   {
        {"John", "Smith"},
        ...
   },
   {
        {"Peter", "something"},
        ...
   }
}
// This last one, does not work (compile error)  :'(



Respuesta: Re: Using '...' on multidimensional arrays - trollkemada - 04.04.2013

Quote:
Originally Posted by ******
Посмотреть сообщение
Nope.
Is there any specific reason why that is not possible? (Just curious)


Respuesta: Re: Using '...' on multidimensional arrays with enums - trollkemada - 04.04.2013

Quote:
Originally Posted by ******
Посмотреть сообщение
Because the compiler doesn't support it...
Do you know any workaround or something like that?