12.02.2012, 19:10
well Open is an array
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
should be
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;
}
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];
pawn Код:
bool:Open[MAX_GATES];