SA-MP Forums Archive
Tag Mismatch - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Tag Mismatch (/showthread.php?tid=400280)



Tag Mismatch - Jay_Dixon - 17.12.2012

Ok, so i seriously can't find the tag mismatch here. The command worked fine without any warnings, before i added the second set of coords, but when i add the second set, i get that warning right there. What's wrong with it?



C:\Users\Jay\Desktop\LGRP\gamemodes\NNRP.pwn(31191 ) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.


Код:
CMD:elevator(playerid, params[])
{
	if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 4)
	{
		if(IsPlayerInRangeOfPoint(playerid, 1.5, -1707.7603,1018.1302,17.9178 || IsPlayerInRangeOfPoint(playerid, 1.5, 2476.7161,1796.8595,1541.7156)))
		{
		    ShowPlayerDialog(playerid, 302, DIALOG_STYLE_LIST, "{00BFFF}VIP Housing", "VIP Housing\nJay's Awesome House\nGround Floor", "Select", "Cance");
		    return 1;
		}
		else
		{
		    SendClientMessage(playerid, COLOR_LIGHTRED, "   You are not a donator!");
		    return 1;
		}
	}
	return 0;
}



Re: Tag Mismatch - Konstantinos - 17.12.2012

By the way, which is the line?
pawn Код:
CMD:elevator(playerid, params[])
{
    if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 4)
    {
        if(IsPlayerInRangeOfPoint(playerid, 1.5, -1707.7603,1018.1302,17.9178) || IsPlayerInRangeOfPoint(playerid, 1.5, 2476.7161,1796.8595,1541.7156))
        {
            ShowPlayerDialog(playerid, 302, DIALOG_STYLE_LIST, "{00BFFF}VIP Housing", "VIP Housing\nJay's Awesome House\nGround Floor", "Select", "Cance");
            return 1;
        }
        else return SendClientMessage(playerid, COLOR_LIGHTRED, "   You are not a donator!");
    }
    return 1;
}



Re : Tag Mismatch - [HRD]Mar1 - 17.12.2012

Код:
CMD:elevator(playerid, params[])
{
	if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 4)
	{
		if(IsPlayerInRangeOfPoint(playerid, 1.5, -1707.7603,1018.1302,17.9178) || IsPlayerInRangeOfPoint(playerid, 1.5, 2476.7161,1796.8595,1541.7156))
		{
		    ShowPlayerDialog(playerid, 302, DIALOG_STYLE_LIST, "{00BFFF}VIP Housing", "VIP Housing\nJay's Awesome House\nGround Floor", "Select", "Cance");
		    return 1;
		}
		else
		{
		    SendClientMessage(playerid, COLOR_LIGHTRED, "   You are not a donator!");
		    return 1;
		}
	}
	return 0;
}



Re: Re : Tag Mismatch - Jay_Dixon - 17.12.2012

Quote:
Originally Posted by [HRD]Mar1
Посмотреть сообщение
Код:
CMD:elevator(playerid, params[])
{
	if(PlayerInfo[playerid][pDonateRank] >= 1 || PlayerInfo[playerid][pAdmin] >= 4)
	{
		if(IsPlayerInRangeOfPoint(playerid, 1.5, -1707.7603,1018.1302,17.9178) || IsPlayerInRangeOfPoint(playerid, 1.5, 2476.7161,1796.8595,1541.7156))
		{
		    ShowPlayerDialog(playerid, 302, DIALOG_STYLE_LIST, "{00BFFF}VIP Housing", "VIP Housing\nJay's Awesome House\nGround Floor", "Select", "Cance");
		    return 1;
		}
		else
		{
		    SendClientMessage(playerid, COLOR_LIGHTRED, "   You are not a donator!");
		    return 1;
		}
	}
	return 0;
}
Mar1 you fucking genius, i can't believe i didn't spot that small mistake XD

Thank you :3