Bracket Error [Fix this pls] REP +
#1

Can anyone fix these lines.. i think i put brackets in wrong

Код:
gamemodes\RRP2.pwn(43905) : warning 225: unreachable code
gamemodes\RRP2.pwn(43905) : error 029: invalid expression, assumed zero
gamemodes\RRP2.pwn(43956) : warning 225: unreachable code
gamemodes\RRP2.pwn(43956) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
pawn Код:
CMD:doccellopen(playerid, params[])
{
    if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
    { if(IsPlayerInRangeOfPoint(playerid, 2.0,1849.32995605,-1714.31005859,5201.54003906))
      {
        MoveDynamicObject(doccell0,1827.80004883+1.25,-1729.19995117,5202.79980469,0.50);
        MoveDynamicObject(doccell1,1831.00000000+1.25,-1729.19995117,5202.79980469,0.50);
        MoveDynamicObject(doccell2,1834.19995117+1.25,-1729.19995117,5202.79980469,0.50);
        MoveDynamicObject(doccell3,1837.40002441+1.25,-1729.19995117,5202.79980469,0.50);
        MoveDynamicObject(doccell4,1840.59997559+1.25,-1729.19995117,5202.79980469,0.50);
        MoveDynamicObject(doccell5,1827.80004883+1.25,-1729.19995117,5206.39990234,0.50);
        MoveDynamicObject(doccell6,1831.00000000+1.25,-1729.19995117,5206.39990234,0.50);
        MoveDynamicObject(doccell7,1834.19995117+1.25,-1729.19995117,5206.39990234,0.50);
        MoveDynamicObject(doccell8,1837.40002441+1.25,-1729.19995117,5206.39990234,0.50);
        MoveDynamicObject(doccell9,1840.59997559+1.25,-1729.19995117,5206.39990234,0.50);
        MoveDynamicObject(doccell10,1843.80004883+1.25,-1729.19995117,5206.39990234,0.50);
        MoveDynamicObject(doccell11,1843.80004883+1.25,-1729.19995117,5202.79980469,0.50);
        MoveDynamicObject(doccell12,1843.80004883+1.25,-1729.19995117,5209.89990234,0.50);
        MoveDynamicObject(doccell13,1840.59997559+1.25,-1729.19995117,5209.89990234,0.50);
        MoveDynamicObject(doccell14,1837.40002441+1.25,-1729.19995117,5209.89990234,0.50);
        MoveDynamicObject(doccell15,1834.19995117+1.25,-1729.19995117,5209.89990234,0.50);
        MoveDynamicObject(doccell16,1831.00000000+1.25,-1729.19995117,5209.89990234,0.50);
        MoveDynamicObject(doccell17,1827.80004883+1.25,-1729.19995117,5209.89990234,0.50);
        MoveDynamicObject(doccell18,1827.80004883+1.25,-1714.30004883,5202.79980469,0.50);
        MoveDynamicObject(doccell19,1831.00000000+1.25,-1714.30004883,5202.79980469,0.50);
        MoveDynamicObject(doccell20,1834.19995117+1.25,-1714.30004883,5202.79980469,0.50);
        MoveDynamicObject(doccell21,1837.40002441+1.25,-1714.30004883,5202.79980469,0.50);
        MoveDynamicObject(doccell22,1840.59997559+1.25,-1714.30004883,5202.79980469,0.50);
        MoveDynamicObject(doccell23,1843.80004883+1.25,-1714.30004883,5202.79980469,0.50);
        MoveDynamicObject(doccell24,1843.80004883+1.25,-1714.30004883,5206.39990234,0.50);
        MoveDynamicObject(doccell25,1840.59997559+1.25,-1714.30004883,5206.39990234,0.50);
        MoveDynamicObject(doccell26,1837.40002441+1.25,-1714.30004883,5206.39990234,0.50);
        MoveDynamicObject(doccell27,1834.19995117+1.25,-1714.30004883,5206.39990234,0.50);
        MoveDynamicObject(doccell28,1831.00000000+1.25,-1714.30004883,5206.39990234,0.50);
        MoveDynamicObject(doccell29,1827.80004883+1.25,-1714.30004883,5206.39990234,0.50);
        MoveDynamicObject(doccell30,1827.80004883+1.25,-1714.30004883,5209.89990234,0.50);
        MoveDynamicObject(doccell31,1831.00000000+1.25,-1714.30004883,5209.89990234,0.50);
        MoveDynamicObject(doccell32,1834.19995117+1.25,-1714.30004883,5209.89990234,0.50);
        MoveDynamicObject(doccell33,1837.40002441+1.25,-1714.30004883,5209.89990234,0.50);
        MoveDynamicObject(doccell34,1840.59997559+1.25,-1714.30004883,5209.89990234,0.50);
        MoveDynamicObject(doccell35,1843.80004883+1.25,-1714.30004883,5209.89990234,0.50);
        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: doccells has been opened!");
       }
        return 1;
      else SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You are not near any doccell!");
      return 1;
    }
     else SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You are not DoC!");
    return 1;
}

CMD:doccellclose(playerid, params[])
{
    if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
    { if(IsPlayerInRangeOfPoint(playerid, 2.0,1849.32995605,-1714.31005859,5201.54003906))
      {
        MoveDynamicObject(doccell0,1827.80004883,-1729.19995117,5202.79980469,0.50);
        MoveDynamicObject(doccell1,1831.00000000,-1729.19995117,5202.79980469,0.50);
        MoveDynamicObject(doccell2,1834.19995117,-1729.19995117,5202.79980469,0.50);
        MoveDynamicObject(doccell3,1837.40002441,-1729.19995117,5202.79980469,0.50);
        MoveDynamicObject(doccell4,1840.59997559,-1729.19995117,5202.79980469,0.50);
        MoveDynamicObject(doccell5,1827.80004883,-1729.19995117,5206.39990234,0.50);
        MoveDynamicObject(doccell6,1831.00000000,-1729.19995117,5206.39990234,0.50);
        MoveDynamicObject(doccell7,1834.19995117,-1729.19995117,5206.39990234,0.50);
        MoveDynamicObject(doccell8,1837.40002441,-1729.19995117,5206.39990234,0.50);
        MoveDynamicObject(doccell9,1840.59997559,-1729.19995117,5206.39990234,0.50);
        MoveDynamicObject(doccell10,1843.80004883,-1729.19995117,5206.39990234,0.50);
        MoveDynamicObject(doccell11,1843.80004883,-1729.19995117,5202.79980469,0.50);
        MoveDynamicObject(doccell12,1843.80004883,-1729.19995117,5209.89990234,0.50);
        MoveDynamicObject(doccell13,1840.59997559,-1729.19995117,5209.89990234,0.50);
        MoveDynamicObject(doccell14,1837.40002441,-1729.19995117,5209.89990234,0.50);
        MoveDynamicObject(doccell15,1834.19995117,-1729.19995117,5209.89990234,0.50);
        MoveDynamicObject(doccell16,1831.00000000,-1729.19995117,5209.89990234,0.50);
        MoveDynamicObject(doccell17,1827.80004883,-1729.19995117,5209.89990234,0.50);
        MoveDynamicObject(doccell18,1827.80004883,-1714.30004883,5202.79980469,0.50);
        MoveDynamicObject(doccell19,1831.00000000,-1714.30004883,5202.79980469,0.50);
        MoveDynamicObject(doccell20,1834.19995117,-1714.30004883,5202.79980469,0.50);
        MoveDynamicObject(doccell21,1837.40002441,-1714.30004883,5202.79980469,0.50);
        MoveDynamicObject(doccell22,1840.59997559,-1714.30004883,5202.79980469,0.50);
        MoveDynamicObject(doccell23,1843.80004883,-1714.30004883,5202.79980469,0.50);
        MoveDynamicObject(doccell24,1843.80004883,-1714.30004883,5206.39990234,0.50);
        MoveDynamicObject(doccell25,1840.59997559,-1714.30004883,5206.39990234,0.50);
        MoveDynamicObject(doccell26,1837.40002441,-1714.30004883,5206.39990234,0.50);
        MoveDynamicObject(doccell27,1834.19995117,-1714.30004883,5206.39990234,0.50);
        MoveDynamicObject(doccell28,1831.00000000,-1714.30004883,5206.39990234,0.50);
        MoveDynamicObject(doccell29,1827.80004883,-1714.30004883,5206.39990234,0.50);
        MoveDynamicObject(doccell30,1827.80004883,-1714.30004883,5209.89990234,0.50);
        MoveDynamicObject(doccell31,1831.00000000,-1714.30004883,5209.89990234,0.50);
        MoveDynamicObject(doccell32,1834.19995117,-1714.30004883,5209.89990234,0.50);
        MoveDynamicObject(doccell33,1837.40002441,-1714.30004883,5209.89990234,0.50);
        MoveDynamicObject(doccell34,1840.59997559,-1714.30004883,5209.89990234,0.50);
        MoveDynamicObject(doccell35,1843.80004883,-1714.30004883,5209.89990234,0.50);
        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: doccells has been closed!");
       }
        return 1;
      else SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You are not near any doccell!");
      return 1;
    }
     else SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You are not DoC!");
    return 1;
}
Reply
#2

Try this:
Код:
CMD:doccellopen(playerid, params[])
{
    if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) return SendClientMessage(playerid,COLOR_GREY," SERVER: You are not DoC");
    {
      if(IsPlayerInRangeOfPoint(playerid, 2.0,1849.32995605,-1714.31005859,5201.54003906) return SendClientMessage(playerid, COLOR_GREY,"SERVER: You are not near any doccell!");
      {
	        MoveDynamicObject(doccell0,1827.80004883+1.25,-1729.19995117,5202.79980469,0.50);
	        MoveDynamicObject(doccell1,1831.00000000+1.25,-1729.19995117,5202.79980469,0.50);
	        MoveDynamicObject(doccell2,1834.19995117+1.25,-1729.19995117,5202.79980469,0.50);
	        MoveDynamicObject(doccell3,1837.40002441+1.25,-1729.19995117,5202.79980469,0.50);
	        MoveDynamicObject(doccell4,1840.59997559+1.25,-1729.19995117,5202.79980469,0.50);
	        MoveDynamicObject(doccell5,1827.80004883+1.25,-1729.19995117,5206.39990234,0.50);
	        MoveDynamicObject(doccell6,1831.00000000+1.25,-1729.19995117,5206.39990234,0.50);
	        MoveDynamicObject(doccell7,1834.19995117+1.25,-1729.19995117,5206.39990234,0.50);
	        MoveDynamicObject(doccell8,1837.40002441+1.25,-1729.19995117,5206.39990234,0.50);
	        MoveDynamicObject(doccell9,1840.59997559+1.25,-1729.19995117,5206.39990234,0.50);
	        MoveDynamicObject(doccell10,1843.80004883+1.25,-1729.19995117,5206.39990234,0.50);
	        MoveDynamicObject(doccell11,1843.80004883+1.25,-1729.19995117,5202.79980469,0.50);
	        MoveDynamicObject(doccell12,1843.80004883+1.25,-1729.19995117,5209.89990234,0.50);
	        MoveDynamicObject(doccell13,1840.59997559+1.25,-1729.19995117,5209.89990234,0.50);
	        MoveDynamicObject(doccell14,1837.40002441+1.25,-1729.19995117,5209.89990234,0.50);
	        MoveDynamicObject(doccell15,1834.19995117+1.25,-1729.19995117,5209.89990234,0.50);
	        MoveDynamicObject(doccell16,1831.00000000+1.25,-1729.19995117,5209.89990234,0.50);
	        MoveDynamicObject(doccell17,1827.80004883+1.25,-1729.19995117,5209.89990234,0.50);
	        MoveDynamicObject(doccell18,1827.80004883+1.25,-1714.30004883,5202.79980469,0.50);
	        MoveDynamicObject(doccell19,1831.00000000+1.25,-1714.30004883,5202.79980469,0.50);
	        MoveDynamicObject(doccell20,1834.19995117+1.25,-1714.30004883,5202.79980469,0.50);
	        MoveDynamicObject(doccell21,1837.40002441+1.25,-1714.30004883,5202.79980469,0.50);
	        MoveDynamicObject(doccell22,1840.59997559+1.25,-1714.30004883,5202.79980469,0.50);
	        MoveDynamicObject(doccell23,1843.80004883+1.25,-1714.30004883,5202.79980469,0.50);
	        MoveDynamicObject(doccell24,1843.80004883+1.25,-1714.30004883,5206.39990234,0.50);
	        MoveDynamicObject(doccell25,1840.59997559+1.25,-1714.30004883,5206.39990234,0.50);
	        MoveDynamicObject(doccell26,1837.40002441+1.25,-1714.30004883,5206.39990234,0.50);
	        MoveDynamicObject(doccell27,1834.19995117+1.25,-1714.30004883,5206.39990234,0.50);
	        MoveDynamicObject(doccell28,1831.00000000+1.25,-1714.30004883,5206.39990234,0.50);
	        MoveDynamicObject(doccell29,1827.80004883+1.25,-1714.30004883,5206.39990234,0.50);
	        MoveDynamicObject(doccell30,1827.80004883+1.25,-1714.30004883,5209.89990234,0.50);
	        MoveDynamicObject(doccell31,1831.00000000+1.25,-1714.30004883,5209.89990234,0.50);
	        MoveDynamicObject(doccell32,1834.19995117+1.25,-1714.30004883,5209.89990234,0.50);
	        MoveDynamicObject(doccell33,1837.40002441+1.25,-1714.30004883,5209.89990234,0.50);
	        MoveDynamicObject(doccell34,1840.59997559+1.25,-1714.30004883,5209.89990234,0.50);
	        MoveDynamicObject(doccell35,1843.80004883+1.25,-1714.30004883,5209.89990234,0.50);
	        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: doccells has been opened!");
  	 		return 1;
		}
	}
}
CMD:doccellclose(playerid, params[])
{
    if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) return SendClientMessage(playerid,COLOR_GREY," SERVER: You are not DoC");
    {
		if(IsPlayerInRangeOfPoint(playerid, 2.0,1849.32995605,-1714.31005859,5201.54003906) return SendClientMessage(playerid, COLOR_GREY,"SERVER: You are not near any doccell!");
      	{
	        MoveDynamicObject(doccell0,1827.80004883,-1729.19995117,5202.79980469,0.50);
	        MoveDynamicObject(doccell1,1831.00000000,-1729.19995117,5202.79980469,0.50);
	        MoveDynamicObject(doccell2,1834.19995117,-1729.19995117,5202.79980469,0.50);
	        MoveDynamicObject(doccell3,1837.40002441,-1729.19995117,5202.79980469,0.50);
	        MoveDynamicObject(doccell4,1840.59997559,-1729.19995117,5202.79980469,0.50);
	        MoveDynamicObject(doccell5,1827.80004883,-1729.19995117,5206.39990234,0.50);
	        MoveDynamicObject(doccell6,1831.00000000,-1729.19995117,5206.39990234,0.50);
	        MoveDynamicObject(doccell7,1834.19995117,-1729.19995117,5206.39990234,0.50);
	        MoveDynamicObject(doccell8,1837.40002441,-1729.19995117,5206.39990234,0.50);
	        MoveDynamicObject(doccell9,1840.59997559,-1729.19995117,5206.39990234,0.50);
	        MoveDynamicObject(doccell10,1843.80004883,-1729.19995117,5206.39990234,0.50);
	        MoveDynamicObject(doccell11,1843.80004883,-1729.19995117,5202.79980469,0.50);
	        MoveDynamicObject(doccell12,1843.80004883,-1729.19995117,5209.89990234,0.50);
	        MoveDynamicObject(doccell13,1840.59997559,-1729.19995117,5209.89990234,0.50);
	        MoveDynamicObject(doccell14,1837.40002441,-1729.19995117,5209.89990234,0.50);
	        MoveDynamicObject(doccell15,1834.19995117,-1729.19995117,5209.89990234,0.50);
	        MoveDynamicObject(doccell16,1831.00000000,-1729.19995117,5209.89990234,0.50);
	        MoveDynamicObject(doccell17,1827.80004883,-1729.19995117,5209.89990234,0.50);
	        MoveDynamicObject(doccell18,1827.80004883,-1714.30004883,5202.79980469,0.50);
	        MoveDynamicObject(doccell19,1831.00000000,-1714.30004883,5202.79980469,0.50);
	        MoveDynamicObject(doccell20,1834.19995117,-1714.30004883,5202.79980469,0.50);
	        MoveDynamicObject(doccell21,1837.40002441,-1714.30004883,5202.79980469,0.50);
	        MoveDynamicObject(doccell22,1840.59997559,-1714.30004883,5202.79980469,0.50);
	        MoveDynamicObject(doccell23,1843.80004883,-1714.30004883,5202.79980469,0.50);
	        MoveDynamicObject(doccell24,1843.80004883,-1714.30004883,5206.39990234,0.50);
	        MoveDynamicObject(doccell25,1840.59997559,-1714.30004883,5206.39990234,0.50);
	        MoveDynamicObject(doccell26,1837.40002441,-1714.30004883,5206.39990234,0.50);
	        MoveDynamicObject(doccell27,1834.19995117,-1714.30004883,5206.39990234,0.50);
	        MoveDynamicObject(doccell28,1831.00000000,-1714.30004883,5206.39990234,0.50);
	        MoveDynamicObject(doccell29,1827.80004883,-1714.30004883,5206.39990234,0.50);
	        MoveDynamicObject(doccell30,1827.80004883,-1714.30004883,5209.89990234,0.50);
	        MoveDynamicObject(doccell31,1831.00000000,-1714.30004883,5209.89990234,0.50);
	        MoveDynamicObject(doccell32,1834.19995117,-1714.30004883,5209.89990234,0.50);
	        MoveDynamicObject(doccell33,1837.40002441,-1714.30004883,5209.89990234,0.50);
	        MoveDynamicObject(doccell34,1840.59997559,-1714.30004883,5209.89990234,0.50);
	        MoveDynamicObject(doccell35,1843.80004883,-1714.30004883,5209.89990234,0.50);
	        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: doccells has been closed!");
    	    return 1;
	   }
	}
}
Sorry for my intentation when I post it:P
Reply
#3

^^. Or try this:

pawn Код:
CMD:doccellopen(playerid, params[])
{
    if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0,1849.32995605,-1714.31005859,5201.54003906))
        {
            // Gate Code           
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: doccells has been opened!");
            return 1;
        }
         else SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You are not near any doccell!");
         return 0;
    }
     else SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You are not DoC!");
     return 0;
}

CMD:doccellclose(playerid, params[])
{
    if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0,1849.32995605,-1714.31005859,5201.54003906))
        {
            // Gate Code
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: doccells has been closed!");
            return 1;
        }
         else SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You are not near any doccell!");
         return 0;
    }
     else SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You are not DoC!");
     return 0;
}
Reply
#4

@Mr.Anonymous
- Why do you return false at the end of the command?

@Karls
- You're using more "return 1" than it should.
pawn Код:
CMD:doccellopen(playerid, params[])
{
    if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0,1849.32995605,-1714.31005859,5201.54003906))
        {
            MoveDynamicObject(doccell0,1827.80004883+1.25,-1729.19995117,5202.79980469,0.50);
            MoveDynamicObject(doccell1,1831.00000000+1.25,-1729.19995117,5202.79980469,0.50);
            MoveDynamicObject(doccell2,1834.19995117+1.25,-1729.19995117,5202.79980469,0.50);
            MoveDynamicObject(doccell3,1837.40002441+1.25,-1729.19995117,5202.79980469,0.50);
            MoveDynamicObject(doccell4,1840.59997559+1.25,-1729.19995117,5202.79980469,0.50);
            MoveDynamicObject(doccell5,1827.80004883+1.25,-1729.19995117,5206.39990234,0.50);
            MoveDynamicObject(doccell6,1831.00000000+1.25,-1729.19995117,5206.39990234,0.50);
            MoveDynamicObject(doccell7,1834.19995117+1.25,-1729.19995117,5206.39990234,0.50);
            MoveDynamicObject(doccell8,1837.40002441+1.25,-1729.19995117,5206.39990234,0.50);
            MoveDynamicObject(doccell9,1840.59997559+1.25,-1729.19995117,5206.39990234,0.50);
            MoveDynamicObject(doccell10,1843.80004883+1.25,-1729.19995117,5206.39990234,0.50);
            MoveDynamicObject(doccell11,1843.80004883+1.25,-1729.19995117,5202.79980469,0.50);
            MoveDynamicObject(doccell12,1843.80004883+1.25,-1729.19995117,5209.89990234,0.50);
            MoveDynamicObject(doccell13,1840.59997559+1.25,-1729.19995117,5209.89990234,0.50);
            MoveDynamicObject(doccell14,1837.40002441+1.25,-1729.19995117,5209.89990234,0.50);
            MoveDynamicObject(doccell15,1834.19995117+1.25,-1729.19995117,5209.89990234,0.50);
            MoveDynamicObject(doccell16,1831.00000000+1.25,-1729.19995117,5209.89990234,0.50);
            MoveDynamicObject(doccell17,1827.80004883+1.25,-1729.19995117,5209.89990234,0.50);
            MoveDynamicObject(doccell18,1827.80004883+1.25,-1714.30004883,5202.79980469,0.50);
            MoveDynamicObject(doccell19,1831.00000000+1.25,-1714.30004883,5202.79980469,0.50);
            MoveDynamicObject(doccell20,1834.19995117+1.25,-1714.30004883,5202.79980469,0.50);
            MoveDynamicObject(doccell21,1837.40002441+1.25,-1714.30004883,5202.79980469,0.50);
            MoveDynamicObject(doccell22,1840.59997559+1.25,-1714.30004883,5202.79980469,0.50);
            MoveDynamicObject(doccell23,1843.80004883+1.25,-1714.30004883,5202.79980469,0.50);
            MoveDynamicObject(doccell24,1843.80004883+1.25,-1714.30004883,5206.39990234,0.50);
            MoveDynamicObject(doccell25,1840.59997559+1.25,-1714.30004883,5206.39990234,0.50);
            MoveDynamicObject(doccell26,1837.40002441+1.25,-1714.30004883,5206.39990234,0.50);
            MoveDynamicObject(doccell27,1834.19995117+1.25,-1714.30004883,5206.39990234,0.50);
            MoveDynamicObject(doccell28,1831.00000000+1.25,-1714.30004883,5206.39990234,0.50);
            MoveDynamicObject(doccell29,1827.80004883+1.25,-1714.30004883,5206.39990234,0.50);
            MoveDynamicObject(doccell30,1827.80004883+1.25,-1714.30004883,5209.89990234,0.50);
            MoveDynamicObject(doccell31,1831.00000000+1.25,-1714.30004883,5209.89990234,0.50);
            MoveDynamicObject(doccell32,1834.19995117+1.25,-1714.30004883,5209.89990234,0.50);
            MoveDynamicObject(doccell33,1837.40002441+1.25,-1714.30004883,5209.89990234,0.50);
            MoveDynamicObject(doccell34,1840.59997559+1.25,-1714.30004883,5209.89990234,0.50);
            MoveDynamicObject(doccell35,1843.80004883+1.25,-1714.30004883,5209.89990234,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: doccells has been opened!");
        }
        else SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You are not near any doccell!");
    }
    else SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You are not DoC!");
    return 1;
}

CMD:doccellclose(playerid, params[])
{
    if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0,1849.32995605,-1714.31005859,5201.54003906))
        {
            MoveDynamicObject(doccell0,1827.80004883,-1729.19995117,5202.79980469,0.50);
            MoveDynamicObject(doccell1,1831.00000000,-1729.19995117,5202.79980469,0.50);
            MoveDynamicObject(doccell2,1834.19995117,-1729.19995117,5202.79980469,0.50);
            MoveDynamicObject(doccell3,1837.40002441,-1729.19995117,5202.79980469,0.50);
            MoveDynamicObject(doccell4,1840.59997559,-1729.19995117,5202.79980469,0.50);
            MoveDynamicObject(doccell5,1827.80004883,-1729.19995117,5206.39990234,0.50);
            MoveDynamicObject(doccell6,1831.00000000,-1729.19995117,5206.39990234,0.50);
            MoveDynamicObject(doccell7,1834.19995117,-1729.19995117,5206.39990234,0.50);
            MoveDynamicObject(doccell8,1837.40002441,-1729.19995117,5206.39990234,0.50);
            MoveDynamicObject(doccell9,1840.59997559,-1729.19995117,5206.39990234,0.50);
            MoveDynamicObject(doccell10,1843.80004883,-1729.19995117,5206.39990234,0.50);
            MoveDynamicObject(doccell11,1843.80004883,-1729.19995117,5202.79980469,0.50);
            MoveDynamicObject(doccell12,1843.80004883,-1729.19995117,5209.89990234,0.50);
            MoveDynamicObject(doccell13,1840.59997559,-1729.19995117,5209.89990234,0.50);
            MoveDynamicObject(doccell14,1837.40002441,-1729.19995117,5209.89990234,0.50);
            MoveDynamicObject(doccell15,1834.19995117,-1729.19995117,5209.89990234,0.50);
            MoveDynamicObject(doccell16,1831.00000000,-1729.19995117,5209.89990234,0.50);
            MoveDynamicObject(doccell17,1827.80004883,-1729.19995117,5209.89990234,0.50);
            MoveDynamicObject(doccell18,1827.80004883,-1714.30004883,5202.79980469,0.50);
            MoveDynamicObject(doccell19,1831.00000000,-1714.30004883,5202.79980469,0.50);
            MoveDynamicObject(doccell20,1834.19995117,-1714.30004883,5202.79980469,0.50);
            MoveDynamicObject(doccell21,1837.40002441,-1714.30004883,5202.79980469,0.50);
            MoveDynamicObject(doccell22,1840.59997559,-1714.30004883,5202.79980469,0.50);
            MoveDynamicObject(doccell23,1843.80004883,-1714.30004883,5202.79980469,0.50);
            MoveDynamicObject(doccell24,1843.80004883,-1714.30004883,5206.39990234,0.50);
            MoveDynamicObject(doccell25,1840.59997559,-1714.30004883,5206.39990234,0.50);
            MoveDynamicObject(doccell26,1837.40002441,-1714.30004883,5206.39990234,0.50);
            MoveDynamicObject(doccell27,1834.19995117,-1714.30004883,5206.39990234,0.50);
            MoveDynamicObject(doccell28,1831.00000000,-1714.30004883,5206.39990234,0.50);
            MoveDynamicObject(doccell29,1827.80004883,-1714.30004883,5206.39990234,0.50);
            MoveDynamicObject(doccell30,1827.80004883,-1714.30004883,5209.89990234,0.50);
            MoveDynamicObject(doccell31,1831.00000000,-1714.30004883,5209.89990234,0.50);
            MoveDynamicObject(doccell32,1834.19995117,-1714.30004883,5209.89990234,0.50);
            MoveDynamicObject(doccell33,1837.40002441,-1714.30004883,5209.89990234,0.50);
            MoveDynamicObject(doccell34,1840.59997559,-1714.30004883,5209.89990234,0.50);
            MoveDynamicObject(doccell35,1843.80004883,-1714.30004883,5209.89990234,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: doccells has been closed!");
        }
        else SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You are not near any doccell!");
    }
    else SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You are not DoC!");
    return 1;
}
Reply
#5

Quote:
Originally Posted by Dwane
Посмотреть сообщение
@Mr.Anonymous
- Why do you return false at the end of the command?
My bad.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)