Jump to content

Save text in xml file.


Recommended Posts

Posted

Hello, i'd like to know what functions do i need to get the text from the memo on client side then trigger it to the server and get the team name to be able to save the text for each team and save in xml file.

Posted (edited)

 

guiGetText 
triggerServerEvent
xmlLoadFile
xmlCreateChild 
xmlNodeSetAttribute
xmlSaveFile
xmlUnloadFile

 

Edited by HassoN
Posted
54 minutes ago, HassoN said:

 


guiGetText 
triggerServerEvent
xmlLoadFile
xmlCreateChild 
xmlNodeSetAttribute
xmlSaveFile
xmlUnloadFile

 

Thanks, and how to save it for each team?

Posted
Just now, mazarati21 said:

Thanks, and how to save it for each team?

What do you mean by saving it for each team? like an xml for each team? then create separated xml files for each one and apply the same functions.

Posted (edited)
Yeah like

<clans>

<clan name="Any" rules="sadsadsadasd">

</clan>

<clan name="owadas" rules="text...">

</clan>

</clans>

 

Edited by mazarati21

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...