warning 213 : tag mismatch problem
#1

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], colorFloat:xFloat:yFloat:zFloat:drawdistanceattachedplayer INVALID_PLAYER_IDattachedvehicle INVALID_VEHICLE_IDtestlos 0worldid = -1interiorid = -1playerid = -1Float:streamdistance 100.0)
{
    if(
CountDynamic3DTextLabels() == MAX_3DTEXT_GLOBAL) return -1;
    new 
l;
    for(
0MAX_3DTEXT_GLOBALl++)
    {
        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(textcolorxyzdrawdistanceattachedplayerattachedvehicletestlosworldidinterioridplayeridstreamdistance); // 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.
Reply
#2

You foget the Text3D tag.

pawn Код:
new Text3D:varname;
Reply
#3

Where did I ?

Read carefully : "Text3D:label" in the enum.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)