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=344720)



warning 213: tag mismatch !! >:( - wilko1995 - 22.05.2012

Код:
House_CreateEntrance(HouseID)
{
	new msg[128], Float:x, Float:y, Float:z;
	
	x = HInfo[HouseID][HX];
	y = HInfo[HouseID][HY];
	z = HInfo[HouseID][HZ];
	
	if(HInfo[HouseID][Owned] == true)
	{
	    HInfo[HouseID][PickupID] = CreateDynamicPickup(1272, 1, x, y, z, 0);
		format(msg, 128, "Owner: %s[128]", HInfo[HouseID][Owner]);
		HInfo[HouseID][DoorText] = CreateDynamic3DTextLabel(msg, GREEN, x, y, z + 1.0, 50.0);
	    if(ShowBoughtHouses == true) return HInfo[HouseID][MapIconID] = CreateDynamicMapIcon(x, y, z, 32, 0, 0, 0, -1, 150.0);
	}
	else
	{
		HInfo[HouseID][PickupID] = CreateDynamicPickup(1273, 1, x, y, z, 0);
		format(msg, 128, "For Sale");
		HInfo[HouseID][DoorText] = CreateDynamic3DTextLabel(msg, GREEN, x, y, z + 1.0, 50.0);
		HInfo[HouseID][MapIconID] = CreateDynamicMapIcon(x, y, z, 31, 0, 0, 0, -1, 150.0);
	}
	return 1;
}
so when i compile it says
Код:
C:\Users\Matt Laptop\Desktop\RP\pawno\include\houses.inc(13) : warning 213: tag mismatch
C:\Users\Matt Laptop\Desktop\RP\pawno\include\houses.inc(20) : warning 213: tag mismatch
Line 13:
Код:
HInfo[HouseID][DoorText] = CreateDynamic3DTextLabel(msg, GREEN, x, y, z + 1.0, 50.0);
Line 20:
Код:
HInfo[HouseID][DoorText] = CreateDynamic3DTextLabel(msg, GREEN, x, y, z + 1.0, 50.0);
Why is it doing this to me, i copied from another server code and it works in theirs so why not mine?


Re: warning 213: tag mismatch !! >:( - JaKe Elite - 22.05.2012

DoorText is not Text3D:

change

pawn Код:
enum HInfo
{
    DoorText
};
to

pawn Код:
enum HInfo
{
    Text3D:DoorText
};



Re: warning 213: tag mismatch !! >:( - wilko1995 - 22.05.2012

Awesome thank you