warning 213: tag mismatch
#1

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) {
Reply
#2

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

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.
Reply
#4

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

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

I mean give us your enum codes.
Reply
#7

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) {
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)