SA-MP Forums Archive
Enum array sizeof? - 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: Enum array sizeof? (/showthread.php?tid=518821)



Enum array sizeof? - Riwerry - 11.06.2014

Is possible to use sizeof of array in enum? Example:

pawn Код:
static stock MyGlobalArray[MAX_PLAYERS][BLAH][ENUM];

enum ENUM
{
    array[20];
}



Re: Enum array sizeof? - Lidor124 - 11.06.2014

Quote:
Originally Posted by Riwerry
Посмотреть сообщение
Is possible to use sizeof of array in enum? Example:

pawn Код:
static stock MyGlobalArray[MAX_PLAYERS][BLAH][ENUM];

enum ENUM
{
    array[20];
}
Yes, if its a string you will have to format it.