ID:149656
 
mainitems2
icon = 'main.dmi'
who
icon_state = "who"
Click()
Listplayers()
return//Stops the proc
New(client/C)
screen_loc = "11,3"
C.screen+=src
New(client/C)
C.screen+=src

mob/proc/Listplayers()
usr << "Chatters:"
for (var/mob/M)
if(M.client)
usr << "[M] [M.title]: [M.level]"

I'm getting Lisplayers() as an undefined proc, any help would be appreciated.

~Kusanagi
ListPlayers is a mob proc so objs don't have access to it. You can get arround this by calling it through a mob like this:

Click()
usr.ListPlayers()

Because usr is a mob (hopefully...) it will have access to that proc.

You should also probably not use usr in the ListPlayers proc. usr can be unpredictable when it isn't in a verb being directly clicked on by a player.