Gate error
#1

I have this command
PHP код:
CMD:gates(playerid,params[])
{
        if(
IsPlayerInRangeOfPoint(playerid15.0, -1209.48816, -1071.85449123.64065) && PlayerInfo[playerid][Faction] == || IsPlayerInRangeOfPoint(playerid15.0, -1209.48816, -1071.85449123.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.85449115.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.85449130.83427,2); // Close the gate
                
MyGateIsOpen false;
            } else if(
IsPlayerInRangeOfPoint(playerid15.0,1587.23071, -1637.8741514.68024) && PlayerInfo[playerid][Faction] == || IsPlayerInRangeOfPoint(playerid,15.0,1587.23071, -1637.8741514.68024) && PlayerInfo[playerid][Faction] == 2){
            if(
pdGate == false// The gate is closed
            
{
                
MoveObject(pdgate,1587.23071, -1637.874159.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.8741514.68024,2); // Close the gate
                   
pdGate false;
            }
           else return 
SendClientMessage(playeridCOLOR_RED"You are not authorized to use this command.");
           return 
1;

but when I compile the compiler just gets filled with errors
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)