proc
RetrievePage(page,type)
switch(type)
if("mtitle") page = "http://www.byond.com/members/[page]"
var/list/http[]=world.Export(page)
if(!http)
world << "FAIL @ [page]"
return html_encode(file2text(http["CONTENT"]))
Joined(member) //member = "Prf X"
var/p = RetrievePage(member,"mtitle")
var/ptitle = copytext(p, findtext(p,"<tr><th><div>Joined:</div></th><td><div>")+length({"<tr><th><div>Joined:</div></th><td><div>"}), findtext(p, "</div></td></tr>"))
world<<"Joined: [ptitle]"// Joined: Mar 27 2007
return ptitle
Problem description:
I'm trying to get the date a player join BYOND but it gives me the whole page instead of just the date