MoveObject Issue
#1

Basically I made a command so only a certain faction can open a door. Now, the thing is; the doors do not move whatsoever...
pawn Код:
command(door, playerid, params[])
{
    new gate1status;
    new gate2status;
    if(Player[playerid][Group] == 1)
    {
        if(IsPlayerInRangeOfPoint(playerid, 3, 238.8503,117.7204,1003.2188))
        {
            if(gate1status == 0)
            {
                MoveObject(sddoor1, 239.61, 116.06, 1002.21, 0.75, 0.00, 0.00, 91.00);
                MoveObject(sddoor2, 239.56, 119.77, 1002.21, 0.75, 0.00, 0.00, 271.00);
                gate1status = 1;
            }
            if(gate1status == 1)
            {
                MoveObject(sddoor1, 239.61, 116.06, 1002.21, 0.75, 0.00, 0.00, 91.00);
                MoveObject(sddoor2, 239.56, 119.05, 1002.21, 0.75, 0.00, 0.00, 271.00);
                gate1status = 0;
            }
        }
    }
    return 1;
}
I cannot seem to find the issue, I looked at the syntax for this many times...
Reply


Messages In This Thread
MoveObject Issue - by nmader - 19.09.2012, 16:45
Re: MoveObject Issue - by Vince - 19.09.2012, 16:51
Re: MoveObject Issue - by nmader - 19.09.2012, 17:07

Forum Jump:


Users browsing this thread: 2 Guest(s)