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



warning 213: tag mismatch - phoon - 16.02.2014

Hello, i new to pawn.

I get this warning.

Код:
C:\Users\phoon\Desktop\SA-MP Server\gamemodes\gamemode.pwn(787) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
What's the problem at here?

pawn Код:
if(tRank[playerid] == INVALID_3DTEXT_ID) {



Re: warning 213: tag mismatch - Necip - 16.02.2014

Show us the code around. Do you have tRank an enum?


Re: warning 213: tag mismatch - phoon - 16.02.2014

Quote:
Originally Posted by Necip
Посмотреть сообщение
Show us the code around. Do you have tRank an enum?
pawn Код:
new Text3D:tRank[MAX_PLAYERS];

if(tRank[playerid] == INVALID_3DTEXT_ID) {
    new Float:x,Float:y,Float:z; GetPlayerPos(playerid, x,y,z);
    tRank[playerid] = Create3DTextLabel("Loading...", 0xFFFFFFFF, x,y,z, 3.0, 0, 0);
    Attach3DTextLabelToPlayer(tRank[playerid],playerid,0.0,0.0,1.3);
}
Something is wrong with INVALID_3DTEXT_ID.


Re: warning 213: tag mismatch - Necip - 16.02.2014

Can you show us your enums too? Where the tRank is.


Re: warning 213: tag mismatch - phoon - 16.02.2014

Quote:
Originally Posted by Necip
Посмотреть сообщение
Can you show us your enums too? Where the tRank is.
On the top of OnGameModeInit.


Re: warning 213: tag mismatch - Necip - 16.02.2014

I mean give us your enum codes.


Re: warning 213: tag mismatch - phoon - 16.02.2014

Quote:
Originally Posted by Necip
Посмотреть сообщение
I mean give us your enum codes.
Never mind. I fixed it.

The problem was i didn't put 'Text3D:' at here.
Код:
if(tRank[playerid] == Text3D:INVALID_3DTEXT_ID) {