Thread: Umm someone knows?

Results 1 to 3 of 3
  1. #1 Umm someone knows? 
    Registered Member Anan's Avatar
    Join Date
    Oct 2008
    Posts
    408
    Thanks given
    5
    Thanks received
    27
    Rep Power
    15
    Once again i were searching what cause dc while logging in myserver so i ran into the "initialize() " method and found this
    for (int j = 0; j < Server.getPlayerManager().players.length; j++) {
    if (j == playerId)
    continue;
    if (Server.getPlayerManager().players[j] != null) {
    if (Server.getPlayerManager().players[j].playerName.equalsIgnoreCase(playerName))
    disconnected = true;
    }
    }
    in it Does that what cause the dc on my login problem?
    so if i delete it would be betteR?
    Thanks for your help anyway
    Reply With Quote  
     

  2. #2  
    Extreme Donator


    Join Date
    Oct 2006
    Posts
    1,370
    Thanks given
    64
    Thanks received
    197
    Rep Power
    426
    Try commenting it out and see if it works, the code looks like it disconnects anyone trying to connect so yeah.

    (Comment it out like this:
    Code:
    /*for (int j = 0; j < Server.getPlayerManager().players.length; j++) {
    if (j == playerId)
    continue;
    if (Server.getPlayerManager().players[j] != null) {
    if (Server.getPlayerManager().players[j].playerName.equalsIgnoreCase(playerName))
    disconnected = true;
    }
    }*/


    ~flow@hacking . rs
    Reply With Quote  
     

  3. #3  
    Community Veteran


    Join Date
    Jan 2008
    Posts
    2,659
    Thanks given
    494
    Thanks received
    627
    Rep Power
    980
    No, that just means that if you log in with a name that has already been taken, it will log you out.
    ~iKilem
    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
  •