09.05.2014, 19:18
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
My enum-array is created like that
Can someone has an idea about the problem ? Thanks in advance.
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;
}
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];