Save Text3D variable to configuration file
#1

I need to save the ID returned by Create3DTextLabel function to an .ini (configuration) file. Basically I'm looking for a way to save a Text3D variable type into an ini file. Any ideas?
Reply
#2

3D Text System V2

Refer to this thread...
Reply
#3

Quote:
Originally Posted by Danyal
Посмотреть сообщение
3D Text System V2

Refer to this thread...
I need to save the value returned by the Create3DTextLabel ID only, not the whole code.

Quote:
Originally Posted by ******
Посмотреть сообщение
I would suggest y_ini personally. However, why do you want to save that? Those handles have no long-term meaning, saving them won't save the text or anything else persistently, so when you come to use it later it will be wrong.
I'm saving the ID so I can use it later on while the server is still running to destroy/update it. It's just a pathetic way to avoid a global array like new variable[1000];, hehe. I'm obsessed with minimization of global variables, can't help myself.

I've actually find a way to save it into an ini file but it gives me the "tag mismatch" warning as the saved variable isn't an integer even if the script can handle it as an integer and it works fine. I'll just create a global Text3D variable and assign the ID to it.

Thank you both.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)