Jump to content

How to list/save elements?


Chlorek

Recommended Posts

Posted

It's me again, my 100000 question today lol :arrow: 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?

Posted

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?

Posted

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 :P everything works with xml files!

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...