Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function SettingsTag(name,options)
- local list = {"<%s",name}
- local star = false
- for k,v in pairs(options) do
- list[1] = list[1] .. " " .. k .. " =%q"
- table.insert(list,v)
- end
- list[1] = list[1] .. "/>"
- table.insert(list,"")
- What(unpack(list))
- return string.format(unpack(list))
- end
- print(SettingsTag("item",{spell = "exura ico", mana = 40, vcomp = 0, vsign = 1, vrandom = 1, vvalue = 75, enable = 1})))
- --[[
- Prints : <item spell ="exura ico" vrandom ="1" vvalue ="75" enable ="1" mana ="40" vsign
- ="1" vcomp ="0"/>
- ]]--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement