Saving 3DTextLabel's with dini?
#1

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?
Reply
#2

You can't use
Код:
dini_IntSet
if you want to save a string. To save a string, use
Код:
 dini_Set
Reply
#3

That's the problem, it's not a string but it isn't an integer either. I'm still getting the errors.
Reply
#4

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.
Reply
#5

You're right, it's not going to give me anything. I was just wondering. Anyways, I don't need it anymore.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)