Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Error with case 51031:

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Error with case 51031:

    I just added this :
    case 51023:
    			if (c.teleAction == 6) {
    			c.getDH().sendOption5("Varrock", "Port Sarim", "Fishing/Cooking", "Woodcutting", "Farming");
    			break;
    			case 51031:
    			break;
    			case 29031:
    			c.getPA().startTeleport(2602, 4779, 0, "modern");
    			break;
    Now the problem is, if i compile this error will come up :
    src\server\model\players\packets\ClickingButtons.java:1650: error: orphaned case
     
                            case 51031:
                            ^
    1 error
    I had this problem before, i fixed it without knowing lol

    Thanks,
    Sh0ck

    --- Update ---

    bump


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Error with case 51031:

    Are the {}s properly positioned?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Mar 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Error with case 51031:

    What do you mean with that?

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Error with case 51031:

    I mean look at the code before and near where the error is happening and make sure the {s and the }s are correctly used.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Need help with switch case
    By niko25 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: October 18th, 2012, 12:10 AM
  2. Please help me with my Case Study
    By dalexquisite in forum Object Oriented Programming
    Replies: 2
    Last Post: September 26th, 2012, 11:58 PM
  3. Case Switch Help?
    By xionyus in forum What's Wrong With My Code?
    Replies: 17
    Last Post: October 19th, 2011, 08:59 PM
  4. orphaned case
    By frozen java in forum What's Wrong With My Code?
    Replies: 3
    Last Post: April 5th, 2011, 08:35 PM
  5. [SOLVED] upper case
    By andaji in forum What's Wrong With My Code?
    Replies: 2
    Last Post: March 13th, 2010, 11:54 PM