Save Text3D variable to configuration file - 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: Save Text3D variable to configuration file (
/showthread.php?tid=380036)
Save Text3D variable to configuration file -
Jaxson - 23.09.2012
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?
Re: Save Text3D variable to configuration file -
Danyal - 24.09.2012
3D Text System V2
Refer to this thread...
Re: Save Text3D variable to configuration file -
Jaxson - 24.09.2012
Quote:
Originally Posted by Danyal
|
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.