SA-MP Forums Archive
warning 213: 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: warning 213: tag mismatch (/showthread.php?tid=591398)



warning 213: tag mismatch - Mikkel_RE - 11.10.2015

Hi, can anybody tell me whats wrong.. when i compile i get this warning

pawn Код:
C:\Users\Mikkel\Desktop\gf_oct15_2015.pwn(28733) : warning 213: tag mismatch
This is the code
pawn Код:
if(strcmp(cmd, "/lockhouse", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pHouseAccepted] == 0)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   You don't own a house !");
                return 1;
            }
            if(!IsPlayerInRangeOfPoint(playerid, 2.0, PlayerInfo[playerid][pHouseX], PlayerInfo[playerid][pHouseY], PlayerInfo[playerid][pHouseZ] && PlayerInfo[playerid][pLocal] == 999))
            {
                SendClientMessage(playerid,COLOR_GREY,"   You are not at your house !");
                return 1;
            }
            GetPlayerName(playerid, sendername, sizeof(sendername));
            if(PlayerInfo[playerid][pHouseLocked] == 1)
            {
                PlayerInfo[playerid][pHouseLocked] = 0;
                PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
                format(string, sizeof(string), "* %s has unlocked the door to their house.", RemoveUnderScore(playerid));
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 1;
            }
            else
            {
                PlayerInfo[playerid][pHouseLocked] = 1;
                PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
                format(string, sizeof(string), "* %s has locked the door to their house.", RemoveUnderScore(playerid));
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 1;
            }
        }
        return 1;
    }
And this is the line where i get the warning

pawn Код:
if(!IsPlayerInRangeOfPoint(playerid, 2.0, PlayerInfo[playerid][pHouseX], PlayerInfo[playerid][pHouseY], PlayerInfo[playerid][pHouseZ] && PlayerInfo[playerid][pLocal] == 999))



Re: warning 213: tag mismatch - 1fret - 11.10.2015

DELETED


Re: warning 213: tag mismatch - AbyssMorgan - 11.10.2015

PHP код:
if(!IsPlayerInRangeOfPoint(playerid2.0PlayerInfo[playerid][pHouseX], PlayerInfo[playerid][pHouseY], PlayerInfo[playerid][pHouseZ]) && PlayerInfo[playerid][pLocal] == 999



Re: warning 213: tag mismatch - Mikkel_RE - 11.10.2015

God, ofcourse ^^ Thank you :P