Chlorek Posted July 4, 2011 Share 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? Link to comment
Buffalo Posted July 4, 2011 Share 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? Link to comment
Chlorek Posted July 4, 2011 Author Share 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! Link to comment
SDK Posted July 4, 2011 Share Posted July 4, 2011 I'll still add this: https://wiki.multitheftauto.com/wiki/SaveMapData Link to comment
Chlorek Posted July 5, 2011 Author Share 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. Link to comment
Buffalo Posted July 5, 2011 Share Posted July 5, 2011 Yeah, me too,you never know when mta will stun you. Link to comment
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