ID:139459
 
Code:
for(var/mob/Player/H in world)
if((H.House==usr.HouseChat||H.AllGMCheck(1,1,1,1,1,0)) &&!H.NoHC.Find(usr.HouseChat))


Problem description:
First a little explanation... NoHC is a list that that the player can add to if they don't want to hear certain channels. It works fine and everything. HouseChat is the chat that they're speaking in at that particular time. The AllGMCheck is just so that the GMs can hear the chat too. Okay, so here we go..
Sorry if this is a stupid question, guys, but when I compile it gives me and error and says that Code\Commands.dm:980:error: H.NoHC.Find: undefined proc.. I don't see why. I've looked at examples and it's pretty much the same. I also tried this...
if(!usr.HouseChat in H.NoHC)


As well as this...

if(usr.HouseChat in H.NoHC)


But they both yielded the same results, as if the check wasn't there at all.
When defining a list you have to tell the compiler it is a /list type.

var/my_list = list() // Wrong

var/list/my_list = list() // Correct
In response to Nadrew
mob/var/NoHC = new/list()


Ahh you caught me. Thanks a ton. I've been confused about this one for like a day.