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
#2

Range 2 a littlebit too small?
Reply
#3

Quote:
Originally Posted by [Bios]Marcel
Посмотреть сообщение
Range 2 a littlebit too small?
Hmmm Can i give you my server IP and can you come and check it? its kinda hard explain
Reply
#4

He's right, range is too little. Please make it higher and try then
Btw: 8 posts and 9 rep? O.o
Reply
#5

Quote:
Originally Posted by hydravink
Посмотреть сообщение
He's right, range is too little. Please make it higher and try then
Btw: 8 posts and 9 rep? O.o
Haha
Yes, i've got my reps here : https://sampforum.blast.hk/showthread.php?tid=407071
Again thanks to everyone!


But still when i do /dooropen it doesnt do anything!

Nothing!

:/ it must be some other problem :#
Reply
#6

Please PM your server (Edit: ServerIP not code lol) and we'll see
Reply
#7

Please Fix It D:
Or just tell me the problem, it doesnt metter what faction i'm in because i've tryed all!
/dooropen and it wont move nothing!
for /gateopen Is Destination is far away or idk D:
Reply
#8

Show us your OnGameModeInit.
Reply
#9

Quote:
Originally Posted by ThePhenix
Посмотреть сообщение
Show us your OnGameModeInit.
Can i PM you and give you PWN? :/
Because OnGameModeInit There are maps etc xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)