3DTextLabel Tag Mismatch?
#1

pawn Code:
INI_Float("DLabel", BusinessInfo[idx][DLabel]);
BusinessInfo[idx][DLabel] = Create3DTextLabel(string, 0xFFFFFF, BusinessInfo[idx][bEntranceX],BusinessInfo[idx][bEntranceY],BusinessInfo[idx][bEntranceZ], 10.0, 0, 0);
I get tag mismatch warnings for any DLabel.. I've tried with Text3D: .. No difference.
Reply
#2

It returns the ID of the 3D label with the tag Text3D:

So loading a float value to the one you store the ID of the 3D label makes absolutely no sense.

Remove this line:
pawn Code:
INI_Float("DLabel", BusinessInfo[idx][DLabel]);
In the enum you use for the BusinessInfo, change to:
pawn Code:
Text3D: DLabel,
And compile. Post those lines that give the tag mismatch warnings here.
Reply
#3

loading 3dtextlabel as float variable? wtf?
There is no need for saving/loading that, OnGameModeInit simply do this:
pawn Code:
new string[128];
format(string, sizeof(string), "Biz name:%s \nOwner: %s \nLevel: %d", BussinessInfo[idx][bName], BussinessInfo[idx][bOwner], BussinessInfo[idx][bLevel]);
BussinessInfo[idx][DLabel] = Create3DTextLabel(string, 0xFFFFFFAA, BusinessInfo[idx][bEntranceX],BusinessInfo[idx][bEntranceY],BusinessInfo[idx][bEntranceZ], 10.0, 0);
// idk if you want for non-owned bizzes make another string
And yes, label var MUST be a Text3D
Reply
#4

Thank you!
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)