FS:Gates Compiling Error
#2

Try this:
pawn Код:
public OnObjectMoved(objectid)
{
    for( new i = 0; i != MAX_GATES; i++ )
    {
        if( GateInfo[i][gCreated] == 1 )
        {
            if( GateInfo[i][gObject] == objectid )
            {
                if( GateInfo[i][gStatus] == GATE_STATE_CLOSED )
                    GateInfo[i][gStatus] = GATE_STATE_OPEN;
                else if( GateInfo[i][gStatus] == GATE_STATE_OPEN )
                    GateInfo[i][gStatus] = GATE_STATE_CLOSED;

                // Update the variables.
                new FloatPos[3];
                GetObjectPos( objectid, oPos[0], oPos[1], oPos[2] );
                GateInfo[i][gX] = oPos[0];
                GateInfo[i][gY] = oPos[1];
                GateInfo[i][gZ] = oPos[2];
                break;
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
FS:Gates Compiling Error - by jblac240 - 08.09.2013, 03:17
Re: FS:Gates Compiling Error - by WLSF - 08.09.2013, 03:33
Re: FS:Gates Compiling Error - by jblac240 - 08.09.2013, 03:36

Forum Jump:


Users browsing this thread: 1 Guest(s)