if(mute.Find(usr.key) || mute.Find(usr.client.address)) |
It's initialised, saved as, treated as and appended to as a list, but the list.Find() proc will not work.
IU.dm:103:error:mute.Find:undefined proc
IU.dm:103:error:mute.Find:undefined proc
ID:147768
Dec 15 2003, 8:01 am (Edited on Dec 15 2003, 8:08 am)
|
||
I'm using a list to save anyone who was muted and logged out afterwards, but for whatever reason, the following code does NOT work.
It's initialised, saved as, treated as and appended to as a list, but the list.Find() proc will not work. IU.dm:103:error:mute.Find:undefined proc IU.dm:103:error:mute.Find:undefined proc | ||
It IS defined as a list variable, that's what annoys me.
<dm> var/list mute | |
Well, I'd have to see more of your proc to figure this out. The problem lies beyond the very very small snippet you posted.
I did notice that usr appears in your snippet, even though the snippet itself doesn't look like it belongs in any kind of verb-like action. It looks like something that should be done passively at login. Lummox JR | |
I think that's about all of it. | ||
I'd just:
var/list/mute = list() to begin with, and not screw with the isnull() stuff. Perhaps its having trouble trying to look in the list before it's been created at runtime. You may want to move ..() to the end of your New() proc and see what happens. | |
Well, I see a few potential areas of concern; you're using weak programming practices in 3 spots and I think one of them is causing the trouble.
| |
Ah, but is it declared as a list? You should make sure that's var/list/mute, not just var/mute. There's where the error comes in.
Using : instead of . would get rid of the compiler error, but it's of course not as safe because what you see here is a helpful sanity check.
Lummox JR