error 033: array must be indexed (Need Uregent Help)
#2

well Open is an array

pawn Код:
if(Open[0] == false) //========Line 113
                {
                    MoveObject(Gate[0], 2008.60, 1252.18, 4.30, 5);
                    Open[0] = true;
                    return 1;
                }
                else
                {
                     MoveObject(Gate[0], 2008.60, 1252.18, 9.07, 5);co-ordinates.
                     Open[0] = false; //=======Line 122
                     return 1;
                }
this will check for Gate 0 only

either loop threw MAX_GATES and use the loop var or do it with else if

also i think this
pawn Код:
bool:Open[MAX_GATES char];
should be
pawn Код:
bool:Open[MAX_GATES];
Reply


Messages In This Thread
error 033: array must be indexed (Need Uregent Help) - by Danyal - 12.02.2012, 19:06
Re: error 033: array must be indexed (Need Uregent Help) - by Madd Kat - 12.02.2012, 19:10
Re: error 033: array must be indexed (Need Uregent Help) - by Danyal - 12.02.2012, 19:13

Forum Jump:


Users browsing this thread: 1 Guest(s)