18.09.2016, 12:17
Hi. Can you help me with this little code please?
Errors:
Errors:
PHP код:
(7644) : error 001: expected token: ")", but found ";"
(7656) : error 001: expected token: "]", but found ";"
(7660) : error 001: expected token: ")", but found "["
(7660) : error 029: invalid expression, assumed zero
(7660) : warning 215: expression has no effect
(7660) : error 001: expected token: ";", but found "]"
(7660) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
PHP код:
#define MAX_AI 50
new Iterator:AIIterator<MAX_AI> //line 7644
enum aiEnum {
refID=-1,
targetID=-1,
targetType,
playerFirst,
attackType,
Team,
Paused,
DOD=1
};
static AI_NPCS[MAX_AI][aiEnum]; //7656 line
static AI_Active = 0;
static GetIDByRef(referenceID) {
foreach(new id : AIIterator) { if (AI_NPCS[id][refID] == id) return id; } //7660 line
return -1;
}
static GetRefByID(id) { return AI_NPCS[id][refID]; }