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.
|
Wht does orphaned case mean i added somethin and i got that.. anyone help me
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.
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 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!
put it between like -
switch (####) {
insert case here-
default:
}
you have 2
Code:case 130:
in the same block
no, that is duplicate label case ... lol...
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;
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |