Tag Mismatch
#1

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;
}
Reply
#2

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;
}
Reply
#3

Код:
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;
}
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)