Door Wont Open
#1

Hello There


We have new script But we have a problem

gates/doors/cells Wont open
I'll post code here for the doors


pawn Код:
if (strcmp("/dooropen", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0,1487.00000000,-1762.42504883,3284.23608398)) //Door 0
        {
            if(PlayerInfo[playerid][pMember] == 14)
            {
                MoveObject(door0,1487.00000000,-1762.42504883+1.25,3284.23608398,0.50);
                SendClientMessage(playerid, 0xFFFFFFFF, "Door0 has been opened.");
            }
        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1483.79003906,-1762.42504883,3284.23608398)) //Door 1
        {
            if(PlayerInfo[playerid][pMember] == 14)
            {
                MoveObject(door1,1483.79003906,-1762.42504883+1.25,3284.23608398,0.50);
                SendClientMessage(playerid, 0xFFFFFFFF, "Door1 has been opened.");
            }
        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1479.85998535,-1758.31994629,3284.23388672)) //Door 2
        {
            if(PlayerInfo[playerid][pMember] == 14)
            {
                MoveObject(door2,1479.85998535-1.25,-1758.31994629,3284.23388672,0.50);
                SendClientMessage(playerid, 0xFFFFFFFF, "Door2 has been opened.");
            }
        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1467.06701660,-1758.31994629,3284.23388672)) //Door 3
        {
            if(PlayerInfo[playerid][pMember] == 14)
            {
                MoveObject(door3,1467.06701660-1.25,-1758.31994629,3284.23388672,0.50);
                SendClientMessage(playerid, 0xFFFFFFFF, "Door3 has been opened.");
            }
        }
        return 1;
    }
    if (strcmp("/doorclose", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0,1487.00000000,-1762.42504883,3284.23608398)) //Door 0
        {
            if(PlayerInfo[playerid][pMember] == 14)
            {
                MoveObject(door0,1487.00000000,-1762.42504883,3284.23608398,0.50);
                SendClientMessage(playerid, 0xFFFFFFFF, "Door0 has been closed.");
            }
        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1483.79003906,-1762.42504883,3284.23608398)) //Door 1
        {
            if(PlayerInfo[playerid][pMember] == 14)
            {
                MoveObject(door1,1483.79003906,-1762.42504883,3284.23608398,0.50);
                SendClientMessage(playerid, 0xFFFFFFFF, "Door1 has been closed.");
            }
        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1479.85998535,-1758.31994629,3284.23388672)) //Door 2
        {
            if(PlayerInfo[playerid][pMember] == 14)
            {
                MoveObject(door2,1479.85998535,-1758.31994629,3284.23388672,0.50);
                SendClientMessage(playerid, 0xFFFFFFFF, "Door2 has been closed.");
            }
        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1467.06701660,-1758.31994629,3284.23388672)) //Door 3
        {
            if(PlayerInfo[playerid][pMember] == 14)
            {
                MoveObject(door3,1467.06701660,-1758.31994629,3284.23388672,0.50);
                SendClientMessage(playerid, 0xFFFFFFFF, "Door3 has been closed.");
            }
        }
        return 1;
    }
Whats the problem When i compile i get only 1 warning

Код:
InfinitumScript.pwn(73913) : warning 203: symbol is never used: "block"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
+ That line does not exist!
Reply


Messages In This Thread
Door Wont Open - by Gortex - 12.01.2013, 16:40
AW: Door Wont Open - by BiosMarcel - 12.01.2013, 16:42
Re: AW: Door Wont Open - by Gortex - 12.01.2013, 16:51
Re: Door Wont Open - by hydravink - 12.01.2013, 16:54
Re: Door Wont Open - by Gortex - 12.01.2013, 16:55
Re: Door Wont Open - by hydravink - 12.01.2013, 17:00
Re: Door Wont Open - by Gortex - 13.01.2013, 06:40
Re: Door Wont Open - by ThePhenix - 13.01.2013, 06:43
Re: Door Wont Open - by Gortex - 13.01.2013, 06:48

Forum Jump:


Users browsing this thread: 1 Guest(s)