Jump to content

Xml


WelCome

Recommended Posts

Posted

Hi today i want create a base system but i have problem

addCommandHandler("base_open",function(plr,command,name,pass)
if name and pass then
local find = xmlFindChild(xmlFile,name,0)
for _,v in ipairs ( xmlNodeGetChildren ( xmlFile )) do
local password = xmlNodeGetAttribute(v,"Password")
end
if find then
outputChatBox("TesT",plr,255,0,0)

end
end
end)

and I want to get the value of the "password" variable and check if it is equal to the pass pass

Posted

You should set an xmlFile variable

~ This has to be the worst board post I have ever read. It simply makes no sense. You start off by talking about space or something, then you randomly start babbling about cupcakes, and you end off with random fish names.

~ Don't listen to this guy, any board with the categories 'dinosaurs, spaceships, fried foods, wild animals, alien abductions, business casual, robots, and fireworks' has true potential.

 

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