warning 213 : tag mismatch problem - 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 problem (
/showthread.php?tid=512235)
warning 213 : tag mismatch problem -
S4t3K - 09.05.2014
Hi.
Second help topic today, sorry
I try to make an include which will include extended streamer functions (by extended I mean useful but not created in the streamer.inc include yet).
I get a warning 213 : tag mismatch problem on the line where I create the label, see here
PHP код:
S_CreateDynamic3DTextLabel(const text[MAX_TEXT_LABEL_SIZE], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0)
{
if(CountDynamic3DTextLabels() == MAX_3DTEXT_GLOBAL) return -1;
new l;
for(l = 0; l < MAX_3DTEXT_GLOBAL; l++)
{
if(!IsValidDynamic3DTextLabel(InfoLabel[l][label])) break;
}
InfoLabel[l][texte] = text;
InfoLabel[l][couleur] = color;
InfoLabel[l][pos][0] = x;
InfoLabel[l][pos][1] = y;
InfoLabel[l][pos][2] = z;
InfoLabel[l][distance][0] = drawdistance;
InfoLabel[l][attachedp] = attachedplayer;
InfoLabel[l][attachedv] = attachedvehicle;
InfoLabel[l][integer][0] = worldid;
InfoLabel[l][integer][1] = interiorid;
InfoLabel[l][integer][2] = playerid;
InfoLabel[l][integer][3] = testlos;
InfoLabel[l][distance][1] = streamdistance;
InfoLabel[l][label] = CreateDynamic3DTextLabel(text, color, x, y, z, drawdistance, attachedplayer, attachedvehicle, testlos, worldid, interiorid, playerid, streamdistance); // Here
if(IsValidDynamic3DTextLabel(InfoLabel[l][label])) return 1;
else return 0;
}
My enum-array is created like that
PHP код:
enum tInfo
{
texte[MAX_TEXT_LABEL_SIZE],
Float:pos[3],
couleur,
Float:distance[2],
attachedp,
attachedv,
integer[4],
Text3D:label,
};
new InfoLabel[MAX_3DTEXT_GLOBAL][tInfo];
Can someone has an idea about the problem ? Thanks in advance.
Re: warning 213 : tag mismatch problem -
arakuta - 09.05.2014
You foget the Text3D tag.
Re : warning 213 : tag mismatch problem -
S4t3K - 09.05.2014
Where did I ?
Read carefully : "Text3D:label" in the enum.