Thread: Parsing

Results 1 to 6 of 6
  1. #1 Parsing 
    Banned
    Join Date
    May 2010
    Posts
    107
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    Code:
    src\server\model\players\packets\Commands.java:271: reached end of file while parsing
    }
     ^
    1 error
    Press any key to continue . . .
    I keep getting this error. I keep deleting on what it says and it will keep going on to something else. I am using Project-Insanity source.

    Pastebin - http://paste.rune-server.org/644
    Reply With Quote  
     

  2. #2  
    Endeavor

    Mikey`'s Avatar
    Join Date
    Dec 2007
    Posts
    4,434
    Thanks given
    715
    Thanks received
    1,435
    Rep Power
    1202
    Try putting more brackets. Sometimes the errors can be misleading.
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    May 2010
    Posts
    107
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    Code:
    if (playerCommand.startsWith("unmute")) {
    				try {	
    					String playerToBan = playerCommand.substring(7);
    					Connection.unMuteUser(playerToBan);
    				} catch(Exception e) {
    					c.sendMessage("Player Must Be Offline.");
    				}			
    			}
    		}
    	}
    }
    That's the end of the Commands.Java.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    May 2010
    Age
    30
    Posts
    102
    Thanks given
    1
    Thanks received
    3
    Rep Power
    46
    Add one or two more definite brackets (aka }) to the end of the class.
    Reply With Quote  
     

  5. #5  
    Banned
    Join Date
    May 2010
    Posts
    107
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    Quote Originally Posted by Cruz View Post
    Add one or two more definite brackets (aka }) to the end of the class.
    Code:
    src\server\model\players\packets\Commands.java:270: illegal start of type
    })
     ^
    src\server\model\players\packets\Commands.java:270: reached end of file while parsing
    })
      ^
    src\server\model\players\packets\Commands.java:280: reached end of file while parsing
    →
    ^
    3 errors
    Press any key to continue . . .
    Reply With Quote  
     

  6. #6  
    Endeavor

    Mikey`'s Avatar
    Join Date
    Dec 2007
    Posts
    4,434
    Thanks given
    715
    Thanks received
    1,435
    Rep Power
    1202
    Take off the ')'. He wasn't meaning put that as well.
    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
  •