[HELP] Tag Mismatch Problem [Fixed] -
Sledge - 18.12.2011
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);
Respuesta: [HELP] Tag Mismatch Problem -
admantis - 18.12.2011
Did you add the proper tag when defining it?
for example.
It's like when you add the "Text:" tag on a textdraw. 3d labels have one too.
Respuesta: [HELP] Tag Mismatch Problem -
admantis - 18.12.2011
- double post sorry -.
Re: [HELP] Tag Mismatch Problem -
Sledge - 18.12.2011
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]);
Re: [HELP] Tag Mismatch Problem -
Sledge - 19.12.2011
bump
Re: [HELP] Tag Mismatch Problem -
MP2 - 19.12.2011
You can't use it like that. dini returns a normal integer.
Re: [HELP] Tag Mismatch Problem -
titanak - 19.12.2011
copy the warnings to here.
Re: [HELP] Tag Mismatch Problem -
Sledge - 19.12.2011
Quote:
Originally Posted by MP2
You can't use it like that. dini returns a normal integer.
|
Please explain.
Re: [HELP] Tag Mismatch Problem -
Calgon - 19.12.2011
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.
Re: [HELP] Tag Mismatch Problem -
Sledge - 19.12.2011
Thank you, Calgon. I knew there was something wrong with all of this, but I guess I was just concentrated on fixing this problem.