SA-MP Forums Archive
enumerator issues - 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: enumerator issues (/showthread.php?tid=383633)



enumerator issues - Karkand - 08.10.2012

Is there any way to create an enumerator with multiple values without receiving errors? An example would be

pawn Код:
enum demoinfo
{
    TestVar[5][128], // <--- This
};

new demosinfo[MAX_DEMOS][demoinfo];
Thanks.


Re: enumerator issues - OnlyOne - 08.10.2012

enum does not support arrays 2D.



PHP код:
// try this
new testvar[5][128] = 
{
   
// your stuff.




Re: enumerator issues - Karkand - 08.10.2012

yeah i knew it would work with an array, just kept trying with an enum, no luck. thank you.