Simple question regarding enum
#1

I'm trying to do something like...

pawn Код:
enum MapNames
{
    Debug_Plains,
    Testing_Palace
}

CurrentMap = random ( sizeof ( MapNames ) );
printf ( "Map: %d (%s)", CurrentMap, MapNames [ CurrentMap ] );
What is it that I'm doing wrong exactly?
Reply


Messages In This Thread
Simple question regarding enum - by 2KY - 08.02.2013, 13:08
Re: Simple question regarding enum - by Anak - 08.02.2013, 13:12
Re: Simple question regarding enum - by 2KY - 08.02.2013, 13:13
Re: Simple question regarding enum - by SuperViper - 08.02.2013, 14:20

Forum Jump:


Users browsing this thread: 1 Guest(s)