SA-MP Forums Archive
Arrays and 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: Arrays and enums (/showthread.php?tid=408510)



Arrays and enums - LarzI - 18.01.2013

pawn Код:
enum e_MyEnum
{
    Data1,
    Data2
};

new
    enumVar[ e_MyEnum ]
;
Vs.

pawn Код:
new
    enumVar[ 2 ]
;
Memory-wise: How less efficient is the first method in comparison with the second method?


Re: Arrays and enums - Vince - 18.01.2013

Oh look, another trivial 'efficiency thread'. Who cares? Optimize things where optimizations are needed.


Re: Arrays and enums - LarzI - 18.01.2013

Quote:
Originally Posted by Vince
Посмотреть сообщение
Oh look, another trivial 'efficiency thread'. Who cares? Optimize things where optimizations are needed.
My curiosity cares. Should've posted this in Little Coding Questions instead of making a thread, though.

Quote:
Originally Posted by ******
Посмотреть сообщение
The fact that you even need to ask this means that you have not understood enums in the slightest.
Welp, better read about it in the pawn-lang then.