bandi94 Posted December 15, 2011 Posted December 15, 2011 i don't use so much xml and i got a problem i am making an autoteam and i wanna make ti to i can add team's in game and here is my problem my xml file <teams > </teams> function addpermteam(name,tag,color,acc) if name~="" and tag~="" and color~="" and acc~="" and getAccount(acc) then local msg local xml= xmlLoadFile("teams.xml") local NewNode = xmlCreateChild(xml, "team") xmlNodeSetAttribute( NewNode, "name",name) xmlNodeSetAttribute( NewNode, "tag",tag) xmlNodeSetAttribute( NewNode, "color",color) xmlSaveFile(xml) xmlUnloadFile(xml) end end and my xml file after i add a team in game <teams> <team name="as" tag="as" color="as"></team> </teams> but here is the problem i need to the xml file look like this how can i do this thx a lot for helping <teams> <team name="as" tag="as" color="as"/> </teams>
bandi94 Posted December 15, 2011 Author Posted December 15, 2011 i have my autoteam you can find it on community and the team's are stored in tabel in the lua and now i wanna tup it on xml and yes i wanna use driver2's xml load part bk i don't have exp whit xml how you can see i make a script and that is only a part of it i include an invitation system and many more if you wanna i can send it on pm to don't say i steal bk i only documented and I imitated driver2' script so you can help me or not ? EDIT: thx for the "noob don't steal" but i made it to work
12p Posted December 15, 2011 Posted December 15, 2011 lol I didn't say "noob don't steal", I just asked if it was driver2's.
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