[HELP]how to use the enum in C++ ?
#1

Hello peoples !

Im have one question with plugins:

How use the enum function on C++ ?

Example:

Im have playerdata[MAX_PLAYERS][e_num] (im know this in pawn)

and first want write this:

enum e_num
{
x,
y,
z
};



And im want this using like this :

Код:
CommandForPosition(playerdata[i][x],playerdata[i][y],playerdata[i][z]);
but C++ no like this. and im want know how correctly this write on C++
Help please
_________________________________________________
I thanks to all who will try to help me!




Reply


Messages In This Thread
[HELP]how to use the enum in C++ ? - by mysan - 05.06.2009, 18:21
Re: [HELP]how to use the enum in C++ ? - by Donny_k - 05.06.2009, 20:35
Re: [HELP]how to use the enum in C++ ? - by samgreen - 05.06.2009, 20:43
Re: [HELP]how to use the enum in C++ ? - by mysan - 05.06.2009, 21:09

Forum Jump:


Users browsing this thread: 1 Guest(s)