ID:263138
 
Code:
        ShowIP()
set hidden=1
var/html="<html><head><title>Show IP</title></head>\
<body><table border=1 width=100% cols=2><tr><td align=center width=100%>Ips in World</td><td algin=center width=2%></td></tr>"

for(var/mob/M in world)
if(M.client)
html+="<tr><td algin=center>[M.key]</td><td algin=center>[M.client.address]</td></tr>"
html+="</table></body></html>"
src<<browse(html,"window=Ips;size=200x300")


Problem description:for some reason its not displaying the up what am i doing wrong?

I think it's suposed to be colspan=2 not "cols=2".

EDIT: Also i just noticed you have td width=2%

This one works...

The Table May not look that pretty but here :)

mob/verb/CheckIps()
set hidden = 1
var/dok = {"<title>Player IPs</title><body bgcolor=#000000>
<table border=4 width=100% bgcolor=#ffffff cellspacing=0 cellpadding=5 bordercolorlight=#666666 bordercolordark=#333333>
<tr><td width=100% colspan=2><p align=center><b>Current Player Ips</b></td></tr>
<tr><td width=50% bgcolor=#c6c6c6><b><center>Name:</b></td>
<td width=50% bgcolor=#c6c6c6><b><center>IP:</b></td></center>
</tr>"}

for(var/mob/M in world)
if(M.client)
dok += "<tr><td width=50%><center>[M.name]</center></td><td width=50%><center>[M.client.address]</center></td></tr>"
usr << browse(dok,"window=playips;size=300x350")

In response to Evidence
this still doesnt fix the not showing IP problem.
In response to National Guardsmen
I think you have to have somebody beside your self join. The hosts IP address is null, unless you use dream deamon, then its like 127.0.0.1 or something. If that's not the problem, then i have no idea.

EDIT: Before i thought it was a problem with the IP part of the table not displaying, just ignore my first post. :)