Thread: [PI] Players Online Updating

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 [PI] Players Online Updating 
    Java Developer

    Join Date
    Jun 2012
    Posts
    384
    Thanks given
    80
    Thanks received
    35
    Rep Power
    4
    Code:
    	public void playerOnline() {
    		for (int j = 0; j < Server.playerHandler.players.length; j++) {
    			if (Server.playerHandler.players[j] != null) {
    				Client c2 = (Client) Server.playerHandler.players[j];
    				c2.getPA().loadQuests();
    			}
    		}	
    	}
    So, i addeed "playerOnline();" in initialize, when someone log in, the players online update for everyone.
    Then, i did the same to logout void and destruct, added the playerOnline();
    But when someone logout, it dont update for every player, why? Thanks.
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Nov 2012
    Posts
    82
    Thanks given
    1
    Thanks received
    5
    Rep Power
    0
    because you have to change the method to public static.
    Reply With Quote  
     

  3. #3  
    Java Developer

    Join Date
    Jun 2012
    Posts
    384
    Thanks given
    80
    Thanks received
    35
    Rep Power
    4
    Quote Originally Posted by Arab Money View Post
    because you have to change the method to public static.
    i changed to public static void and still didnt worked
    Reply With Quote  
     

  4. #4  
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,283
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    Quote Originally Posted by Arab Money View Post
    because you have to change the method to public static.
    Lmao.
    Reply With Quote  
     

  5. Thankful users:


  6. #5  
    Java Developer

    Join Date
    Jun 2012
    Posts
    384
    Thanks given
    80
    Thanks received
    35
    Rep Power
    4
    Quote Originally Posted by Karma_K View Post
    Lmao.
    do you know how to help?
    Reply With Quote  
     

  7. #6  
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,283
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    Quote Originally Posted by Eminem View Post
    do you know how to help?
    Where in the logout method did you place it
    Reply With Quote  
     

  8. Thankful user:


  9. #7  
    Java Developer

    Join Date
    Jun 2012
    Posts
    384
    Thanks given
    80
    Thanks received
    35
    Rep Power
    4
    Quote Originally Posted by Karma_K View Post
    Where in the logout method did you place it
    In logout i added below properLogout = true;
    In destruct i added below the Misc.println("[DEREGISTRED]: "+playerName+"");
    i also tried right below the void logout, and dont worked =/
    Reply With Quote  
     

  10. #8  
    Java Developer

    Join Date
    Jun 2012
    Posts
    384
    Thanks given
    80
    Thanks received
    35
    Rep Power
    4
    i'll rep and thanks who can help me.
    Reply With Quote  
     

  11. #9  
    Java Developer

    Join Date
    Jun 2012
    Posts
    384
    Thanks given
    80
    Thanks received
    35
    Rep Power
    4
    Quote Originally Posted by Karma_K View Post
    Where in the logout method did you place it
    Help me pls, ill rep and thanks =(
    Reply With Quote  
     

  12. #10  
    Only Skype is TrickSpades
    MGkelly's Avatar
    Join Date
    Sep 2013
    Posts
    540
    Thanks given
    92
    Thanks received
    77
    Rep Power
    58
    Quote Originally Posted by Karma_K View Post
    Where in the logout method did you place it
    PM Karma. He's helped me with like every issue I've had.
    I support your mother.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. [PI] players online not updating
    By haydar25 in forum Help
    Replies: 14
    Last Post: 07-07-2012, 03:43 PM
  2. [PI] Players Online (website)
    By Rockstar Jax in forum Help
    Replies: 7
    Last Post: 12-12-2011, 10:59 PM
  3. [PI] Players online on website
    By Alexander in forum Help
    Replies: 5
    Last Post: 04-02-2011, 05:30 PM
  4. [PI] Players online in quest tab
    By Arithium in forum Snippets
    Replies: 14
    Last Post: 09-27-2010, 07:44 PM
  5. [PI] Players Online in Quest tab Update
    By Harambe_ in forum Help
    Replies: 3
    Last Post: 09-17-2010, 05:29 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •