Error array must be indexed
#4

It may compiled but you will get a run time error 4 if you run that code.

First think what you want to do because I look those:
pawn Код:
new zombie[1], human[2];
and I'm pretty sure you meant to do something else. Having an array with size of 1 makes it only accessible at index 0 and human at index 0 and 1.

Were you supposed to define them as teams? If yes, it'd be:
pawn Код:
#define zombie 1
#define human 2
(even though we used to define a symbol in caps with #define pattern)

or

pawn Код:
enum
{
    zombie = 1,
    human
};
Reply


Messages In This Thread
Error array must be indexed - by Eymeric69 - 21.05.2016, 12:19
Re: Error array must be indexed - by SyS - 21.05.2016, 12:21
Re: Error array must be indexed - by Eymeric69 - 21.05.2016, 12:24
Re: Error array must be indexed - by Konstantinos - 21.05.2016, 12:33
Re: Error array must be indexed - by SyS - 21.05.2016, 13:17
Re: Error array must be indexed - by Darrenr - 21.05.2016, 14:54

Forum Jump:


Users browsing this thread: 1 Guest(s)