ID:142731
 
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:
says key is an undefined var


Instead of [src]/[key]... put [usr.key].
Bluntmonkey wrote:
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

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>
That is incorrect. The proper syntax is:
<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>
.
It entirely depends on where that line of code is located.