world << "<small><font color = red><b>Login info: <font color = purple>[src]/[key] is a first time player!"
Problem description:
says key is an undefined var
ID:142731
![]() Mar 19 2008, 10:39 pm (Edited on Mar 19 2008, 10:47 pm)
|
|
Code:
world << "<small><font color = red><b>Login info: <font color = purple>[src]/[key] is a first time player!" Problem description: says key is an undefined var |
Bluntmonkey wrote:
Code: > world << "<small><font color = red><b>Login info: <font color = purple>[src]/[key] is a first time player!" Problem description: In this case, src and key are probably going to be the same result. It's wiser to narrow down your field by using src.name and src.key. Also, where are you placing that code exactly? In theory, short of some HTML errors and the suggestion I made above, there is nothing wrong with it. The only time I could think where that particular error message would be given is if you were trying to use this in a user-defined proc or world/New(). In which, both is not suggested. Also, your HTML is broken. HTML params shouldn't have spaces in them, for example: <font color = red>A</font>
<font color='red'>A</font>
You can also remove your small tag in there by adding extra params into your font tag <font size='10px' color='#FF0000'>A</font> Some purists will tell you that you aren't supposed to use font anymore because it's outdated. Although that is technically true, that rule is generally only for websites, and in the long run, no one will really care in BYOND. If you're looking for an alternative, you can try using the span tag:
<span style='color: #FF0000; size: 8pt;'>A</span>
|
Instead of [src]/[key]... put [usr.key].