PDA

View Full Version : Warning 213: Tag Mismatch


Syntax
14/06/2012, 09:04 AM
I receive the warning that there's a tag mismatch on this line:

if(PlayerToPoint(3.0, playerid, 219.54347229,116.53206635,1000.57739258 || PlayerToPoint(3.0, playerid, 322.2046,310.0630,1002.0508)))

I know the warnings aren't something to worry about, but I still just want it gone... The whole part of the code is:

if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 14)
{
if(PlayerToPoint(3.0, playerid, 219.54347229,116.53206635,1000.57739258 || PlayerToPoint(3.0, playerid, 322.2046,310.0630,1002.0508)))
{
SetTimer("CloseJailDoors", 5000, false);
MoveDynamicObject(SD_DOOR_JAIL[0], 220.49273682,116.54603577,1000.57739258, 2.0);
MoveDynamicObject(SD_DOOR_JAIL[1], 216.86801147,116.49556732,1000.57739258, 2.0);
MoveDynamicObject(SD_DOOR_JAIL[2], 322.2046,310.0630,1002.0508, 2.0);
}
else if(PlayerToPoint(3.0, playerid, 239.58705139,117.60168457,1004.83050537))
{
SetTimer("CloseSDDoor1", 5000, false);
MoveDynamicObject(SD_DOOR[0], 239.58691406,117.60156250,1007.35797119, 2.0);
}
else if(PlayerToPoint(3.0, playerid, 253.28112793,110.07449341,1004.83050537))
{
SetTimer("CloseSDDoor2", 5000, false);
MoveDynamicObject(SD_DOOR[1], 253.33105469,110.07714844,1007.30792236, 2.0);
}
}
}

Pangea
14/06/2012, 09:08 AM
if(PlayerToPoint(3.0, playerid, 219.54347229,116.53206635,1000.57739258) || PlayerToPoint(3.0, playerid, 322.2046,310.0630,1002.0508))

You didn't close the first PlayerToPoint with a )
Should be fixed now.

Syntax
14/06/2012, 09:21 AM
You're a diamond. Thankyou.