18.08.2010, 09:29
Hi,
I have, for example, this enumerator:
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:
But compiler wont allow me to do this.
Why? And is there another way?
I have, for example, this enumerator:
pawn Код:
enum JOBPLACE
{
...
Worker[MAX_PLAYER_NAME],
...
}
new Job[10][JOBPLACE];
pawn Код:
enum JOBPLACE
{
...
Worker[20][MAX_PLAYER_NAME],
...
}
new Job[10][JOBPLACE];
Why? And is there another way?