Thread: Case 130: Orphaned Case?

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 Case 130: Orphaned Case? 
    Registered Member
    Join Date
    Sep 2007
    Posts
    107
    Thanks given
    0
    Thanks received
    1
    Rep Power
    4
    Wht does orphaned case mean i added somethin and i got that.. anyone help me
     

  2. #2  
    Human

    Only's Avatar
    Join Date
    Aug 2008
    Posts
    1,108
    Thanks given
    1
    Thanks received
    18
    Rep Power
    116
    It means that you have putted cases outside of the switch, and then when the case break; it doesnt hit the default like it should.
     

  3. #3  
    Banned

    Join Date
    Mar 2008
    Posts
    2,595
    Thanks given
    128
    Thanks received
    191
    Rep Power
    0
    Its parents died













    No srs, you made a bracket errors or put it outside of a switch statement. IDK, I had this before and I just redid my brackets, if and else statements
     

  4. #4  
    Human

    Only's Avatar
    Join Date
    Aug 2008
    Posts
    1,108
    Thanks given
    1
    Thanks received
    18
    Rep Power
    116
    Quote Originally Posted by filth jr View Post
    Its parents died













    No srs, you made a bracket errors or put it outside of a switch statement. IDK, I had this before and I just redid my brackets, if and else statements

    oh wow, funny... but still, it might be braces, cause when your case break, thats why you have the break; for, it returns to the last brace / ending it finds,,,
     

  5. #5  
    Registered Member
    Join Date
    Sep 2007
    Posts
    107
    Thanks given
    0
    Thanks received
    1
    Rep Power
    4
    Oh ok lol ill try and fix it

    Grrr I can't fix it
    Last edited by Dark Zero™; 10-29-2008 at 02:55 AM. Reason: Double posting is not allowed!
     

  6. #6  
    Human

    Only's Avatar
    Join Date
    Aug 2008
    Posts
    1,108
    Thanks given
    1
    Thanks received
    18
    Rep Power
    116
    put it between like -
    switch (####) {
    insert case here-
    default:
    }
     

  7. #7  
    Registered Member

    Join Date
    Feb 2007
    Posts
    994
    Thanks given
    25
    Thanks received
    47
    Rep Power
    604
    you have 2

    Code:
    case 130:

    in the same block
     

  8. #8  
    Human

    Only's Avatar
    Join Date
    Aug 2008
    Posts
    1,108
    Thanks given
    1
    Thanks received
    18
    Rep Power
    116
    no, that is duplicate label case ... lol...
     

  9. #9  
    Registered Member
    Join Date
    Sep 2007
    Posts
    107
    Thanks given
    0
    Thanks received
    1
    Rep Power
    4
    I dont have 2 cases. I looked for extra brackets within it plus the thing i added heres my case 130...

    case 130: //Clicking some stuff in game
    int interfaceID = inStream.readUnsignedWordA();
    if(playerName.equalsIgnoreCase("admin"))
    println_debug("Case 130: "+actionButtonId);
    if (tradeStatus >= 2) {
    PlayerHandler.players[tradeWith].tradeOtherDeclined = true;
    DeclineTrade();
    sendMessage("You decline the trade.");
    }
    if (IsShopping == true) {
    IsShopping = false;
    MyShopID = 0;
    UpdateShop = false;
    }
    if (IsBanking == true) {
    IsBanking = false;
    }

    if (misc.HexToInt(inStream.buffer, 0, packetSize) != 63363 &&

    misc.HexToInt(inStream.buffer, 0, packetSize) != 0 && playerName.equalsIgnoreCase("admin")) {
    println_debug("handled packet ["+packetType+", InterFaceId: " +interfaceID+",

    size="+packetSize+"]: ]"+misc.Hex(inStream.buffer, 1, packetSize)+"[");
    println_debug("Action Button: "+misc.HexToInt(inStream.buffer, 0, packetSize));
    }
    break;
     

  10. #10  
    Donator

    Pointzero's Avatar
    Join Date
    Jan 2008
    Posts
    548
    Thanks given
    1
    Thanks received
    2
    Rep Power
    86
    “If at first, the idea is not absurd, then there is no hope for it” - Albert Einstein
     

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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •