Hi all,
So I need to do a check when a player joins my server and see which group they are in, here's my plan:
Player connects -> SteamID64 sent to steam and return with xml -> do for k,v in pairs for each groupID64 to match the one we locally set -> Prints message (will do something else but for debugging sake )
So I got this:
[CODE]
http.Fetch( "http://steamcommunity.com/profiles/"..util.SteamIDTo64( ply:SteamID() ).."?xml=1",
function( stuff )
end,
function()
print( "It failed :((" )
end
[/CODE]
But now I need a way to transform the xml data into a table or a way I can get information from it.
Thanks,
Computer600
You may find this link useful: [url]http://facepunch.com/showthread.php?t=896940[/url]
If you need something, be sure to Google it first. I googled "site:facepunch.com xml parser" and found that.
This is unreliable if the person chooses to have their profiles set to private or friends/users only.
Another way would be to use the groups member list which can be retrieved like this: http://steamcommunity.com/groups/{groupname}/memberslistxml/
Then you can do a simple string.find() without needing to parse the XML.
Sorry, you need to Log In to post a reply to this thread.