Jump to content
  • 0

tag mismatch , help?


Diabolik

Question

Cum rezolv warningurile?

Warning:

C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13639) : warning 213: tag mismatch
C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13644) : warning 213: tag mismatch
C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13649) : warning 213: tag mismatch
C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13654) : warning 213: tag mismatch
C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13659) : warning 213: tag mismatch
C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13664) : warning 213: tag mismatch
C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13669) : warning 213: tag mismatch
C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13674) : warning 213: tag mismatch
C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13687) : warning 213: tag mismatch
C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13692) : warning 213: tag mismatch
C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13697) : warning 213: tag mismatch
C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13702) : warning 213: tag mismatch
C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13707) : warning 213: tag mismatch
C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13712) : warning 213: tag mismatch
C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13717) : warning 213: tag mismatch
C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13722) : warning 213: tag mismatch
C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13735) : warning 213: tag mismatch
C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13740) : warning 213: tag mismatch
C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13745) : warning 213: tag mismatch
C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13750) : warning 213: tag mismatch
C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13763) : warning 213: tag mismatch
C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13768) : warning 213: tag mismatch
C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13773) : warning 213: tag mismatch
C:\Users\eu\Downloads\Galaxy  RPG\Galaxy RPG\gamemodes\GORP.pwn(13778) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

Header size:           9800 bytes
Code size:          1651944 bytes
Data size:          5956688 bytes
Stack/heap size:      16384 bytes; estimated max. usage=5350 cells (21400 bytes)
Total requirements: 7634816 bytes

25 Warnings.
13639 if(PlayerToPoint(playerid, 2.0,1491.21484375,-1764.90002441,3284.25048828)) //Cell0 13644 if(PlayerToPoint(playerid, 2.0,1494.41210938,-1764.90002441,3284.25048828)) //Cell1 13649 if(PlayerToPoint(playerid, 2.0,1497.61132812,-1764.90002441,3284.25048828)) //Cell2 si tot asa contiunua: Comanza este:
if (strcmp("/cellopen", cmdtext, true, 10) == 0)
	{
        if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLider] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLider] == 3)
        {
	        if(PlayerToPoint(playerid, 2.0,1491.21484375,-1764.90002441,3284.25048828)) //Cell0
		    {
		        MoveObject(cell0,1491.21484375-1.25,-1764.90002441,3284.25048828,0.50);
		        SendClientMessage(playerid, 0xFFFFFFFF, "{0035F0}Politia Romana:{FFFFFF} Ai deschis usa de la jail");
		    }
		    if(PlayerToPoint(playerid, 2.0,1494.41210938,-1764.90002441,3284.25048828)) //Cell1
		    {
		        MoveObject(cell1,1494.41210938-1.25,-1764.90002441,3284.25048828,0.50);
		        SendClientMessage(playerid, 0xFFFFFFFF, "{0035F0}Politia Romana:{FFFFFF} Ai deschis usa de la jail");
		    }
		    if(PlayerToPoint(playerid, 2.0,1497.61132812,-1764.90002441,3284.25048828)) //Cell2
		    {
		        MoveObject(cell2,1497.61132812-1.25,-1764.90002441,3284.25048828,0.50);
		        SendClientMessage(playerid, 0xFFFFFFFF, "{0035F0}Politia Romana:{FFFFFF} Ai deschis usa de la jail");
		    }
		    if(PlayerToPoint(playerid, 2.0,1500.81445312,-1764.90002441,3284.25048828)) //Cell3
		    {
		        MoveObject(cell3,1500.81445312-1.25,-1764.90002441,3284.25048828,0.50);
		        SendClientMessage(playerid, 0xFFFFFFFF, "{0035F0}Politia Romana:{FFFFFF} Ai deschis usa de la jail");
		    }
		    if(PlayerToPoint(playerid, 2.0,1500.81994629,-1761.51000977,3284.25048828)) //Cell4
		    {
		        MoveObject(cell4,1500.81994629-1.25,-1761.51000977,3284.25048828,0.50);
		        SendClientMessage(playerid, 0xFFFFFFFF, "{0035F0}Politia Romana:{FFFFFF} Ai deschis usa de la jail");
		    }
		    if(PlayerToPoint(playerid, 2.0,1491.22094727,-1761.50000000,3284.25048828)) //Cell5
		    {
		        MoveObject(cell5,1491.22094727-1.25,-1761.50000000,3284.25048828,0.50);
		        SendClientMessage(playerid, 0xFFFFFFFF, "{0035F0}Politia Romana:{FFFFFF} Ai deschis usa de la jail");
		    }
		    if(PlayerToPoint(playerid, 2.0,1494.41894531,-1761.51000977,3284.25048828)) //Cell6
		    {
		        MoveObject(cell6,1494.41894531-1.25,-1761.51000977,3284.25048828,0.50);
		        SendClientMessage(playerid, 0xFFFFFFFF, "{0035F0}Politia Romana:{FFFFFF} Ai deschis usa de la jail");
		    }
		    if(PlayerToPoint(playerid, 2.0,1497.61999512,-1761.51000977,3284.25048828)) //Cell7
		    {
		        MoveObject(cell7,1497.61999512-1.25,-1761.51000977,3284.25048828,0.50);
		        SendClientMessage(playerid, 0xFFFFFFFF, "{0035F0}Politia Romana:{FFFFFF} Ai deschis usa de la jail");
		    }
		}
		return 1;
	}
//===============================================================================================//
	if (strcmp("/cellclose", cmdtext, true, 10) == 0)
	{
        if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLider] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLider] == 3)
        {
	        if(PlayerToPoint(playerid, 2.0,1491.21484375,-1764.90002441,3284.25048828)) //Cell0
		    {
		        MoveObject(cell0,1491.21484375,-1764.90002441,3284.25048828,0.50);
		        SendClientMessage(playerid, 0xFFFFFFFF, "{0035F0}Politia Romana:{FFFFFF} Ai inchis usa de la jail");
		    }
		    if(PlayerToPoint(playerid, 2.0,1494.41210938,-1764.90002441,3284.25048828)) //Cell1
		    {
		        MoveObject(cell1,1494.41210938,-1764.90002441,3284.25048828,0.50);
		        SendClientMessage(playerid, 0xFFFFFFFF, "{0035F0}Politia Romana:{FFFFFF} Ai inchis usa de la jail");
		    }
		    if(PlayerToPoint(playerid, 2.0,1497.61132812,-1764.90002441,3284.25048828)) //Cell2
		    {
		        MoveObject(cell2,1497.61132812,-1764.90002441,3284.25048828,0.50);
		        SendClientMessage(playerid, 0xFFFFFFFF, "{0035F0}Politia Romana:{FFFFFF} Ai inchis usa de la jail");
		    }
	    	if(PlayerToPoint(playerid, 2.0,1500.81445312,-1764.90002441,3284.25048828)) //Cell3
		    {
		        MoveObject(cell3,1500.81445312,-1764.90002441,3284.25048828,0.50);
		        SendClientMessage(playerid, 0xFFFFFFFF, "{0035F0}Politia Romana:{FFFFFF} Ai inchis usa de la jail");
		    }
		    if(PlayerToPoint(playerid, 2.0,1500.81994629,-1761.51000977,3284.25048828)) //Cell4
		    {
		        MoveObject(cell4,1500.81994629,-1761.51000977,3284.25048828,0.50);
		        SendClientMessage(playerid, 0xFFFFFFFF, "{0035F0}Politia Romana:{FFFFFF} Ai inchis usa de la jail");
		    }
		    if(PlayerToPoint(playerid, 2.0,1491.22094727,-1761.50000000,3284.25048828)) //Cell5
		    {
		        MoveObject(cell5,1491.22094727,-1761.50000000,3284.25048828,0.50);
		        SendClientMessage(playerid, 0xFFFFFFFF, "{0035F0}Politia Romana:{FFFFFF} Ai inchis usa de la jail");
		    }
		    if(PlayerToPoint(playerid, 2.0,1494.41894531,-1761.51000977,3284.25048828)) //Cell6
		    {
		        MoveObject(cell6,1494.41894531,-1761.51000977,3284.25048828,0.50);
		        SendClientMessage(playerid, 0xFFFFFFFF, "{0035F0}Politia Romana:{FFFFFF} Ai inchis usa de la jail");
		    }
		    if(PlayerToPoint(playerid, 2.0,1497.61999512,-1761.51000977,3284.25048828)) //Cell7
		    {
		        MoveObject(cell7,1497.61999512,-1761.51000977,3284.25048828,0.50);
		        SendClientMessage(playerid, 0xFFFFFFFF, "{0035F0}Politia Romana:{FFFFFF} Ai inchis usa de la jail");
		    }
		}
		return 1;
	}
//===============================================================================================//
	if (strcmp("/dooropen", cmdtext, true, 10) == 0)
	{
        if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLider] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLider] == 3)
        {
		    if(PlayerToPoint(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, "{0035F0}Politia Romana:{FFFFFF} Ai deschis usa");
		    }
		    if(PlayerToPoint(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, "{0035F0}Politia Romana:{FFFFFF} Ai deschis usa");
		    }
	    	if(PlayerToPoint(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, "{0035F0}Politia Romana:{FFFFFF} Ai deschis usa");
		    }
		    if(PlayerToPoint(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, "{0035F0}Politia Romana:{FFFFFF} Ai deschis usa");
		    }
		}
		return 1;
	}
//===============================================================================================//
	if (strcmp("/doorclose", cmdtext, true, 10) == 0)
	{
        if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLider] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLider] == 3)
        {
		    if(PlayerToPoint(playerid, 2.0,1487.00000000,-1762.42504883,3284.23608398)) //Door 0
		    {
		        MoveObject(door0,1487.00000000,-1762.42504883,3284.23608398,0.50);
		        SendClientMessage(playerid, 0xFFFFFFFF, "{0035F0}Politia Romana:{FFFFFF} Ai inchis usa");
		    }
		    if(PlayerToPoint(playerid, 2.0, 1483.79003906,-1762.42504883,3284.23608398)) //Door 1
		    {
		        MoveObject(door1,1483.79003906,-1762.42504883,3284.23608398,0.50);
		        SendClientMessage(playerid, 0xFFFFFFFF, "{0035F0}Politia Romana:{FFFFFF} Ai inchis usa");
		    }
		    if(PlayerToPoint(playerid, 2.0, 1479.85998535,-1758.31994629,3284.23388672)) //Door 2
		    {
		        MoveObject(door2,1479.85998535,-1758.31994629,3284.23388672,0.50);
		        SendClientMessage(playerid, 0xFFFFFFFF, "{0035F0}Politia Romana:{FFFFFF} Ai inchis usa");
		    }
		    if(PlayerToPoint(playerid, 2.0, 1467.06701660,-1758.31994629,3284.23388672)) //Door 3
		    {
		        MoveObject(door3,1467.06701660,-1758.31994629,3284.23388672,0.50);
		        SendClientMessage(playerid, 0xFFFFFFFF, "{0035F0}Politia Romana:{FFFFFF} Ai inchis usa");
		    }
		}
		return 1;
	}

LISTA - GAMEMODE-URI SA-MP - Le gasiti pe toate aici: http://twiriock.com/3MGP

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

uite cum am:

forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);

public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
    new Float:oldposx, Float:oldposy, Float:oldposz;
    new Float:tempposx, Float:tempposy, Float:tempposz;
    GetPlayerPos(playerid, oldposx, oldposy, oldposz);
    tempposx = (oldposx -x);
    tempposy = (oldposy -y);
    tempposz = (oldposz -z);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
    {
        return 1;
    }
    return 0;
}

LISTA - GAMEMODE-URI SA-MP - Le gasiti pe toate aici: http://twiriock.com/3MGP

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.