Scripting Posted June 6, 2012 Posted June 6, 2012 Hi all, I m making this code to create a xml file with a name of a map, For exemple: local map = getMapName(source) if ( map == "race: firstmap" ) then xml = xmlCreateFile ("" .. map .. "", "root" ) xmlSaveFile(xml) end The problem the xml files cannot created because a letter not neded this [ : ] how i can delete it by using a code?
Castillo Posted June 6, 2012 Posted June 6, 2012 string.gsub San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
JR10 Posted June 6, 2012 Posted June 6, 2012 local map = getMapName(source) if ( map == "race: firstmap" ) then map = map:gsub("race: ", "") xml = xmlCreateFile (map .. ".map", "root" ) xmlSaveFile(xml) end Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
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