Thread: devo 2,7 Null

Results 1 to 6 of 6
  1. #1 devo 2,7 Null 
    Registered Member
    Join Date
    Jul 2008
    Posts
    3,163
    Thanks given
    235
    Thanks received
    74
    Rep Power
    209
    [null]: <PLAYER> Connection closed by user.
    [Romania cldd]: <PLAYER> Connection accepted, Process time: 0ms.
    [null]: <PLAYER> Connection closed by user.
    what are this nulls?[null]: <PLAYER> Connection closed by user.
    its because i have a router?if i run my server on localhost dont appear

    Code:
    	public void destruct() {
    		if (mySock == null) {
    			return;
    		} // already shutdown
    		try {
    			if (this != null) {
    				if (playerName != "" || playerName.length() > 0) {
    					misc.println("[" + playerName + "]: <"+ (playerRights > 0 ? "STAFF" : "PLAYER") +"> Connection closed by user.");
    				}
    			}
    			disconnected = true;
    			if (saveNeeded)
    			SG().savegame(this, true);
    			if (in != null) {
    				in.close();
    			}
    			if (out != null) {
    				out.close();
    			}
    			mySock.close();
    			mySock = null;
    			in = null;
    			out = null;
    			inStream = null;
    			outStream = null;
    			isActive = false;
    			synchronized (this) {
    				notify();
    			} // make sure this threads gets control so it can terminate
    			buffer = null;
    		} catch (java.io.IOException ioe) {
    			ioe.printStackTrace();
    		}
    		super.destruct();
    	}
    and this
    Code:
    	public void stop() {
    		PLAYER = "null";
    		PLAYER_ID = 0;
    		isBusy = false;
    		startAnimation(-1);
    		
    	}
    whats the problem here??
    i will rep+++
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jul 2008
    Posts
    3,163
    Thanks given
    235
    Thanks received
    74
    Rep Power
    209
    someone pls?
    Reply With Quote  
     

  3. #3  
    Sate
    Guest
    oooo ooo i got dis too, so I look at the destruct method, and found out.. Here just replace urs with mine

    Code:
    public void destruct() {
    		if (mySock == null) {
    			return;
    		}
    		try {
    			if (playerName != null && playerRights >= 0) {
    				misc.println("[" + playerName + "]: <"+ (playerRights > 0 ? "STAFF" : "PLAYER") +"> Connection closed by user.");
    			} else {
    				return;
    			}
    			disconnected = true;
    			if (inTrade) {
    				if(!acceptedTrade) {
    					getTrade().declineTrade();
    				}
    			} else {
    			SG().savegame(this, true);
    			}
    			if (in != null) {
    				in.close();
    			}
    			if (out != null) {
    				out.close();
    			}
    			if (mySock != null) {
    				mySock.close();
    			}
    			mySock = null;
    			in = null;
    			out = null;
    			inStream = null;
    			outStream = null;
    			isActive = false;
    			synchronized (this) {
    				notify();
    			}
    			buffer = null;
    		} catch (java.io.IOException ioe) {
    			ioe.printStackTrace();
    		}
    		super.destruct();
    	}
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jul 2008
    Posts
    3,163
    Thanks given
    235
    Thanks received
    74
    Rep Power
    209
    thank you very much!fixed!rep+++
    Reply With Quote  
     

  5. #5  
    Registered Member
    Purely chill's Avatar
    Join Date
    May 2009
    Posts
    838
    Thanks given
    91
    Thanks received
    11
    Rep Power
    315
    Weird with you guys because I never had this. ;P
    Spoiler for Signature:
    Nightly Firefox builds The 64-bit one has too many glitches, get the 32-bit one.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jul 2008
    Posts
    3,163
    Thanks given
    235
    Thanks received
    74
    Rep Power
    209
    probable is because i have a router idk whats the problem but this fix my problemtnx again
    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
  •