Re: Display UserList on another page

  •  09-10-2009, 5:29 AM

    Re: Display UserList on another page

    But Ok - I got something from it anyway:
     
    1.    IChatLobby[] lobbies = ChatApi.GetLobbyArray();  
    2.    foreach (IChatLobby lobby in lobbies)  
    3.    {  
    4.      LobbyInfo li = new LobbyInfo(lobby);  
    5.      lbl.Text += "There's currently " + li.ClientCount + " users in " + li.Name;  
    6.    }  

     Only problem is - it returns zero AND if I do
    1. li.JoinClient(","); 

    I get an exception:    System.NullReferenceException: Object reference not set to an instance of an object.
View Complete Thread