21.08.2010, 16:35
I have made a multi-dimensional itter, and I am trying to find first free slot in it:
But I get errors.
I guess I don't understand how it should be used... Could someone explain it to me?
http://y-less.pastebin.com/YVNT36LX Line 733
Thanks.
pawn Код:
#define MAX_TOWERS 50
#define MAX_ENEMIES 50
new Iterator:ActiveTower[MAX_PLAYERS]<MAX_TOWERS>;
new Iterator:ActiveEnemy[MAX_PLAYERS]<MAX_ENEMIES>;
...
new slot = Iter_Free(ActiveEnemy, MAX_ENEMIES, ActiveEnemy[p], MAX_ENEMIES); //752
...
Код:
(752) : error 035: argument type mismatch (argument 1) (752) : warning 215: expression has no effect (752) : error 001: expected token: ";", but found "]" (752) : error 029: invalid expression, assumed zero (752) : fatal error 107: too many error messages on one line
http://y-less.pastebin.com/YVNT36LX Line 733
Thanks.