• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Better way of doing this ?
#1
Is there a better way of getting the size of an enum ?


Code:
enum modes
{
? ??MODE_fgrs,
? ? MODE_gdsrg,
? ? MODE_lol,
? ? MODE_third
};


new Modes [modes];

new size = sizeof (Modes);
  Reply


Messages In This Thread
Better way of doing this ? - by mouiz - 2019-07-07, 06:38 PM
RE: Better way of doing this ? - by Freaksken - 2019-07-07, 07:04 PM

Forum Jump: