Gate error
#5

Код:
CMD:gates(playerid,params[])
{
        if(IsPlayerInRangeOfPoint(playerid, 15.0, -1209.48816, -1071.85449, 123.64065) && PlayerInfo[playerid][Faction] == 1 || IsPlayerInRangeOfPoint(playerid, 15.0, -1209.48816, -1071.85449, 123.64065) && PlayerInfo[playerid][Faction] == 2) // Is Player within 15 meters of this gate?
        {
            if(MyGateIsOpen == false) // The gate is closed
            {
                MoveObject(impoundgate,-1209.48816, -1071.85449, 115.09575,2.0); // Open the gate
                MyGateIsOpen = true;
            }
            else // Else the gate is open and we want it to close now
            {
                MoveObject(impoundgate,-1209.48816, -1071.85449, 130.83427,2); // Close the gate
                MyGateIsOpen = false;
            } else if(IsPlayerInRangeOfPoint(playerid, 15.0,1587.23071, -1637.87415, 14.68024) && PlayerInfo[playerid][Faction] == 1 || IsPlayerInRangeOfPoint(playerid,15.0,1587.23071, -1637.87415, 14.68024) && PlayerInfo[playerid][Faction] == 2){
            if(pdGate == false) // The gate is closed
            {
                MoveObject(pdgate,1587.23071, -1637.87415, 9.06480,2.0); // Open the gate
                pdGate = true;
            }
            else // Else the gate is open and we want it to close now
            {
                MoveObject(pdgate,1587.23071, -1637.87415, 14.68024,2); // Close the gate
                   pdGate = false;
            }
           else return SendClientMessage(playerid, COLOR_RED, "You are not authorized to use this command.");
           return 1;
}
That just loaded perfectly fine for me with my includes. You might want to update all of your includes required for that script.
Reply


Messages In This Thread
Gate error - by lramos15 - 11.11.2013, 20:25
Re: Gate error - by Elie1996 - 11.11.2013, 20:48
Re: Gate error - by Kimossab - 11.11.2013, 21:11
Re: Gate error - by lramos15 - 11.11.2013, 21:24
Re: Gate error - by Akira297 - 11.11.2013, 21:26
Re: Gate error - by lramos15 - 11.11.2013, 22:17
Re: Gate error - by Elie1996 - 11.11.2013, 22:18
Re: Gate error - by Kimossab - 11.11.2013, 22:50

Forum Jump:


Users browsing this thread: 1 Guest(s)