Multiple strings in an enumerator.
#1

Hi,

I have, for example, this enumerator:
pawn Код:
enum JOBPLACE
{
    ...
    Worker[MAX_PLAYER_NAME],
    ...
}
new Job[10][JOBPLACE];
As you can see, I have the worker's name on some job. Sometimes I'll need to loop through all workers, so I do this:
pawn Код:
enum JOBPLACE
{
    ...
    Worker[20][MAX_PLAYER_NAME],
    ...
}
new Job[10][JOBPLACE];
But compiler wont allow me to do this.
Why? And is there another way?
Reply
#2

pawn is limited to 3d arrays only
Reply
#3

Quote:
Originally Posted by dice7
Посмотреть сообщение
pawn is limited to 3d arrays only
So the only way is this?
pawn Код:
new Job_Worker[MAX_JOBS][20][MAX_PLAYER_NAME];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)