mob/proc/i_open(var/obj/O)
var/i_open ={"<HTML>
<body bgcolor="#006633" text="#FFFFFF" link="#FFFFFF">
<div id="Layer1" style="position:absolute; left:10px; top:10px; width:114px; height:64px; z-index:1">
<table width="99%" height="71" cellpadding="0">
<tr>
<td width="32" height="32"><img src=item_[O].png ALT=[O]></td>
<td width="76" bgcolor="#999999"><div align="center">[O.name]</div></td>
</tr>
<tr bgcolor="#999966">
<td colspan="2"></td>
</tr>
</table>
"}
usr << browse(i_open,"window=i_open,size=200x200")
error:
runtime error: Cannot read null.name
proc name: i open (/mob/proc/i_open)
usr: Cryptic (/mob/characters/Archer)
src: Cryptic (/mob/characters/Archer)
call stack:
Cryptic (/mob/characters/Archer): i open(null)
Cryptic (/client): Topic("src=\[0x0];action=I_open;I_ope...", /list (/list), null)
I cannot figure out what is wrong... all vars have been defined, etc. It looks liek it should work, but it doesn't =/
The code snippet you posted looks fine. I suspect the problem is where you define the link that triggers it. If you notice, it is calling topic with "src=\[0x0]" which means it is null.
Can you post the section that creates that link? It should contain something like "<a href=BYOND://?src=\ref[some_var];action=I_open"