Thread: Multiple Connections

Results 1 to 3 of 3
  1. #1 Multiple Connections 
    Member
    Join Date
    Aug 2008
    Posts
    32
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    How do I make it more then one. I used the search button believe it or not and nothing worked. The only thing that look remotely like it would work is this and i changed it to 3 and nothing happened it was previously at 100000.

    Code:
    public static int MaxConnections = 3;
    I really don't know what to do. I don't think it's a client issue because even when using different clients only one can be on at a time.
    Reply With Quote  
     

  2. #2  
    Fuckin PRO

    Tyler's Avatar
    Join Date
    Jan 2008
    Age
    33
    Posts
    6,017
    Thanks given
    46
    Thanks received
    507
    Rep Power
    3330
    That maxconnections is for how many people can be connected to your server at once.

    Anyway, Are you using delta?

    If so search for

    Code:
    			  for(int i = 0; i < server.playerHandler.players.length; i++){
    			  Player p = server.playerHandler.players[i]; if(p != null &&
    			  !p.disconnected && p.connectedFrom.equals(connectedFrom) &&
    			  playerId != p.playerId && !connectedFrom.equals("localhost") && !checkLog("connect", connectedFrom)){
    			  sM("Address in use!"); returnCode = 9; disconnected =
    			  true; return; } }
    And comment it out.
    Free Filehost Premium Accounts
    Click Here
    Reply With Quote  
     

  3. #3  
    Member

    Join Date
    Aug 2008
    Posts
    455
    Thanks given
    2
    Thanks received
    19
    Rep Power
    0
    yeh the code u show is max connection, not blocking mulitple connection
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •