Code:
src\server\model\players\packets\BankX2.java:59: error: unreachable statement
                if (Xamount == 0)
                ^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
Druk op een toets om door te gaan. . .
my code is:
Code:
public void processPacket(Client c, int packetType, int packetSize) {
        int Xamount = c.getInStream().readDWord();
        if (Xamount == 0)
            Xamount = 1;
                    if (c.buyingX) {
            if (Xamount <= 10000) {
                c.getShops().buyItem(c.xRemoveId, c.xRemoveSlot, Xamount);
            } else {
                c.sendMessage("You cannot buy more than 10000 at a time.");
            }
            c.xRemoveSlot = 0;
            c.xInterfaceId = 0;
            c.xRemoveId = 0;
            c.buyingX = false;