Gate move CMD
#1

Hey i made a cmd only for specificlic gate's to move , and that's the code of that , I have error's in compile so I need somone fix that and post here or in private massage the full new code with no error's and good ty...


The My Code I made:
Код:
CMD:dooropen(playerid, params[])
	{
		if(IsPlayerInRangeOfPoint(playerid, 2.0,1487.00000000,-1762.42504883,3284.23608398)) //Door 0
		{
		    MoveObject(door0,1487.00000000,-1762.42504883+1.25,3284.23608398,0.50);
		    SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door0 has been opened.");

		}
		if(IsPlayerInRangeOfPoint(playerid, 2.0, 1483.79003906,-1762.42504883,3284.23608398)) //Door 1
		{
		    MoveObject(door1,1483.79003906,-1762.42504883+1.25,3284.23608398,0.50);
		    SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door1 has been opened.");

		}
		if(IsPlayerInRangeOfPoint(playerid, 2.0, 1479.85998535,-1758.31994629,3284.23388672)) //Door 2
		{
		    MoveObject(door2,1479.85998535-1.25,-1758.31994629,3284.23388672,0.50);
		    SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door2 has been opened.");

		}
		if(IsPlayerInRangeOfPoint(playerid, 2.0, 1467.06701660,-1758.31994629,3284.23388672)) //Door 3
		{
		    MoveObject(door3,1467.06701660-1.25,-1758.31994629,3284.23388672,0.50);
		    SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door3 has been opened.");
		}
		return 1;
	}
CMD:doorclose(playerid, params[])
	{
		if(IsPlayerInRangeOfPoint(playerid, 2.0,1487.00000000,-1762.42504883,3284.23608398)) //Door 0
		{
		    MoveObject(door0,1487.00000000,-1762.42504883,3284.23608398,0.50);
		    SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door0 has been closed.");

		}
		if(IsPlayerInRangeOfPoint(playerid, 2.0, 1483.79003906,-1762.42504883,3284.23608398)) //Door 1
		{
		    MoveObject(door1,1483.79003906,-1762.42504883,3284.23608398,0.50);
		    SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door1 has been closed.");

		}
		if(IsPlayerInRangeOfPoint(playerid, 2.0, 1479.85998535,-1758.31994629,3284.23388672)) //Door 2
		{
		    MoveObject(door2,1479.85998535,-1758.31994629,3284.23388672,0.50);
		    SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door2 has been closed.");

		}
		if(IsPlayerInRangeOfPoint(playerid, 2.0, 1467.06701660,-1758.31994629,3284.23388672)) //Door 3
		{
		    MoveObject(door3,1467.06701660,-1758.31994629,3284.23388672,0.50);
		    SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door3 has been closed.");
		}
		return 1;
	door0 = CreateObject(1495,1487.00000000,-1762.42504883,3284.23608398,0.00000000,0.00000000,270.00000000); //object(gen_doorext01) (1)
	door1 = CreateObject(1495,1483.79003906,-1762.42504883,3284.23608398,0.00000000,0.00000000,270.00000000); //object(gen_doorext01) (2)
	door2 = CreateObject(1495,1479.85998535,-1758.31994629,3284.23388672,0.00000000,0.00000000,0.00000000); //object(gen_doorext01) (2)
	door3 = CreateObject(1495,1467.06701660,-1758.31994629,3284.23388672,0.00000000,0.00000000,0.00000000); //object(gen_doorext01) (2)
                 {
  {
	return 0;
}
The Error's when I compile it:
Код:
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2877) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2884) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2891) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2900) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2914) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2921) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2925) : error 017: undefined symbol "GivePlayerCash"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2928) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2935) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2943) : error 017: undefined symbol "GivePlayerCash"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2946) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2953) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2960) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2974) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2983) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(2995) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(3014) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(3028) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(3042) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(3050) : error 017: undefined symbol "GivePlayerCash"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(3055) : error 017: undefined symbol "ProxDetector"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(3214) : error 017: undefined symbol "GivePlayerCash"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(3472) : error 017: undefined symbol "GivePlayerCash"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(3473) : error 017: undefined symbol "GivePlayerCash"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(4774) : error 017: undefined symbol "NOPCheck"
d:\Users\User\Desktop\Gamemode (1)\Gamemode\gamemodes\Model.pwn(5351) : error 017: undefined symbol "NOPCheck"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#2

this will help ya
pawn Код:
CMD:dooropen(playerid, params[])
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0,1487.00000000,-1762.42504883,3284.23608398)) //Door 0
        {
            MoveObject(door0,1487.00000000,-1762.42504883+1.25,3284.23608398,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door0 has been opened.");

        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1483.79003906,-1762.42504883,3284.23608398)) //Door 1
        {
            MoveObject(door1,1483.79003906,-1762.42504883+1.25,3284.23608398,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door1 has been opened.");

        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1479.85998535,-1758.31994629,3284.23388672)) //Door 2
        {
            MoveObject(door2,1479.85998535-1.25,-1758.31994629,3284.23388672,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door2 has been opened.");

        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1467.06701660,-1758.31994629,3284.23388672)) //Door 3
        {
            MoveObject(door3,1467.06701660-1.25,-1758.31994629,3284.23388672,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door3 has been opened.");
        }
        return 1;
    }
CMD:doorclose(playerid, params[])
    {
    door0 = CreateObject(1495,1487.00000000,-1762.42504883,3284.23608398,0.00000000,0.00000000,270.00000000); //object(gen_doorext01) (1)
    door1 = CreateObject(1495,1483.79003906,-1762.42504883,3284.23608398,0.00000000,0.00000000,270.00000000); //object(gen_doorext01) (2)
    door2 = CreateObject(1495,1479.85998535,-1758.31994629,3284.23388672,0.00000000,0.00000000,0.00000000); //object(gen_doorext01) (2)
    door3 = CreateObject(1495,1467.06701660,-1758.31994629,3284.23388672,0.00000000,0.00000000,0.00000000); //object(gen_doorext01) (2)
        if(IsPlayerInRangeOfPoint(playerid, 2.0,1487.00000000,-1762.42504883,3284.23608398)) //Door 0
        {
            MoveObject(door0,1487.00000000,-1762.42504883,3284.23608398,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door0 has been closed.");

        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1483.79003906,-1762.42504883,3284.23608398)) //Door 1
        {
            MoveObject(door1,1483.79003906,-1762.42504883,3284.23608398,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door1 has been closed.");

        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1479.85998535,-1758.31994629,3284.23388672)) //Door 2
        {
            MoveObject(door2,1479.85998535,-1758.31994629,3284.23388672,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door2 has been closed.");

        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1467.06701660,-1758.31994629,3284.23388672)) //Door 3
        {
            MoveObject(door3,1467.06701660,-1758.31994629,3284.23388672,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Door3 has been closed.");
        }
                return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)