enums..
#4

Quote:
Originally Posted by 2KY
Посмотреть сообщение
Is something like this possible?

pawn Код:
enum pVars
{
                        //snip.
            ClassWeapon [ MAX_CLASSES ] [ MAX_TEAMS ],
                        //snip.
}
Where "MAX_CLASSES" is defined as 3 (0,1,2) and "MAX_TEAMS" is defined as 2 (0,1). It's currently giving me an error



If someone could point me in the right direction, that'd be great.
You should make different array to hold that. As the above poster said, enumerators doesn't supports multi-dimensional array.
Reply


Messages In This Thread
enums.. - by 2KY - 18.08.2012, 01:44
Re: enums.. - by leonardo1434 - 18.08.2012, 01:47
Re: enums.. - by 2KY - 18.08.2012, 01:48
Re: enums.. - by Arca - 18.08.2012, 01:49

Forum Jump:


Users browsing this thread: 1 Guest(s)