Saving 3DTextLabel's with dini? - 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: Saving 3DTextLabel's with dini? (
/showthread.php?tid=423133)
Saving 3DTextLabel's with dini? -
Da_Noob - 16.03.2013
I'm just fooling around with dini and I've stumbled upon a problem.
How can I save a Text3D to, for example, a file?
I've tried this:
pawn Код:
BizLabel[bizid] = CreateDynamic3DTextLabel(string, COLOR_BLUE, x, y, z, 30.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 30.0);
And then I tried to save it, like this:
pawn Код:
dini_IntSet(file, "TextID", BizLabel[bizid]);
But this gives me an error. Do I need to use something else, like I need to use dini_Set for a string?
Re: Saving 3DTextLabel's with dini? -
Mystique - 16.03.2013
You can't use
if you want to save a string. To save a string, use
Re: Saving 3DTextLabel's with dini? -
Da_Noob - 16.03.2013
That's the problem, it's not a string but it isn't an integer either. I'm still getting the errors.
Re: Saving 3DTextLabel's with dini? -
AndreT - 16.03.2013
What is saving a 3D text label into a file going to give you? Nothing. You re-create it every time and it could differ depending on if you perhaps have any other 3D text labels created PRIOR to the business text labels creation.
On a side note, the warning is output because the variable name presumes a tag, "Text3D:" if I'm not mistaken. You need to append "_:" before it to avoid warnings.
Re: Saving 3DTextLabel's with dini? -
Da_Noob - 16.03.2013
You're right, it's not going to give me anything. I was just wondering. Anyways, I don't need it anymore.