[HELP] Tag Mismatch Problem
#1

Hi, I am having troubles with this code. The script gives me a warning say that it's a "Tag Mismatch." I don't see anything wrong with this snippet. Please help.
pawn Код:
Houses[i][hTextLabel] = Create3DTextLabel(string, WHITE, Houses[i][hExteriorX], Houses[i][hExteriorY], Houses[i][hExteriorZ], 17, 0, 0);
Also this code gives me the same warning:
pawn Код:
Update3DTextLabelText(Houses[h][hTextLabel], WHITE, string);
Reply
#2

Did you add the proper tag when defining it?
for example.

pawn Код:
new Text3D:label;
It's like when you add the "Text:" tag on a textdraw. 3d labels have one too.
Reply
#3

- double post sorry -.
Reply
#4

pawn Код:
enum HouseData
{
    Text3D: hTextLabel,
};
Okay, does this look right? I erased all of the other things in the enum.

Here is what I am getting a Tag Mismatch on now:
pawn Код:
Houses[i][hTextLabel] = dini_Int(FileName, "TextLabel");
pawn Код:
dini_IntSet(FileName, "TextLabel", Houses[i][hTextLabel]);
Reply
#5

bump
Reply
#6

You can't use it like that. dini returns a normal integer.
Reply
#7

copy the warnings to here.
Reply
#8

Quote:
Originally Posted by MP2
Посмотреть сообщение
You can't use it like that. dini returns a normal integer.
Please explain.
Reply
#9

What exactly are you saving as the text label? The text label should be the ID of the text label made, you don't need to save or load it, you just need it to exist as a variable in your enum structure.
Reply
#10

Thank you, Calgon. I knew there was something wrong with all of this, but I guess I was just concentrated on fixing this problem.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)