Chlorek Posted July 4, 2011 Posted July 4, 2011 It's me again, my 100000 question today lol so, I have simple gamemode which during working created a lot of objects. And is there a way to list them and then save to xml file?
Buffalo Posted July 4, 2011 Posted July 4, 2011 Store all those objects that were created during the time in table and set an infinite 'timesToExecute' timer to store them into XML at specified intervals or when it is required. Or do you require a 'save-to-xml' code? Powered by Kimsufi© ☢ ZHP on Facebook ☢ ZHP on Youtube ☢ Support us ☢
Chlorek Posted July 4, 2011 Author Posted July 4, 2011 Ok so I have table with all created objects. But still I don't know how to save it to file (on resource stop) and how to load it on resource start. Can anybody give me simple example? This file doesn't must to be xml. Just I need save objects with their positions and ID. #Edit Ok, I made it myself... ehm with mta wiki everything works with xml files!
SDK Posted July 4, 2011 Posted July 4, 2011 I'll still add this: https://wiki.multitheftauto.com/wiki/SaveMapData Learn Lua - Learn to script - GUI scripting Scripter tools - Find/fix errors yourself(!) Don't pm me for scripting help, keep it for the Scripting subforum!
Chlorek Posted July 5, 2011 Author Posted July 5, 2011 really usable function! maybe someone will need it but I have saving/loading to/from xml file. I never heard about this really usable function.
Buffalo Posted July 5, 2011 Posted July 5, 2011 Yeah, me too,you never know when mta will stun you. Powered by Kimsufi© ☢ ZHP on Facebook ☢ ZHP on Youtube ☢ Support us ☢
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now