3DTextLabel Tag Mismatch? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 3DTextLabel Tag Mismatch? (
/showthread.php?tid=474513)
3DTextLabel Tag Mismatch? -
Chrillzen - 08.11.2013
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.
Re: 3DTextLabel Tag Mismatch? -
Konstantinos - 08.11.2013
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:
And compile. Post those lines that give the tag mismatch warnings here.
Re: 3DTextLabel Tag Mismatch? -
erminpr0 - 08.11.2013
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
Re: 3DTextLabel Tag Mismatch? -
Chrillzen - 08.11.2013
Thank you!