Thread: Enum Expected

Results 1 to 5 of 5
  1. #1 Enum Expected 
    Registered Member
    Join Date
    Aug 2013
    Posts
    293
    Thanks given
    13
    Thanks received
    8
    Rep Power
    5
    I added a code in my commands.java now it says enum expected. It said line 601 i went there did it same thign1?!?
    Reply With Quote  
     

  2. #2  
    Registered Member
    thim slug's Avatar
    Join Date
    Nov 2010
    Age
    28
    Posts
    4,132
    Thanks given
    1,077
    Thanks received
    1,137
    Rep Power
    5000
    Quote Originally Posted by We want fifa View Post
    I added a code in my commands.java now it says enum expected. It said line 601 i went there did it same thign1?!?
    What...? This is pretty hard to understand. How about showing us the code you added and where you added it?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Aug 2013
    Posts
    293
    Thanks given
    13
    Thanks received
    8
    Rep Power
    5
    Quote Originally Posted by Samuel View Post
    What...? This is pretty hard to understand. How about showing us the code you added and where you added it?
    if (playerCommand.startsWith("redeem")) {
    if (c.inWild())
    return;
    for (int j = 0; j < c.playerEquipment.length; j++) {
    //5+ = Reward if (c.cStreak > 4) {
    c.sendMessage("Congratulations You Have Redeemed Your Kill Streak Reward.");
    //Reward Item c.getItems().addItem(995, 10000);
    c.Streak = 0;
    return;
    }
    }
    try {
    //Under 5 = No Reward int cStreak = 0;
    c.sendMessage("Your Kill Streak Isn't High Enough For Reward.");
    } catch (Exception e){}
    }

    }
    }
    }
    }
    }
    }
    }

    -- Added the ::redeem under my :layers command
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jul 2012
    Age
    30
    Posts
    65
    Thanks given
    71
    Thanks received
    14
    Rep Power
    11
    Remove a bracket.
    Reply With Quote  
     

  5. #5  
    Registered Member
    thim slug's Avatar
    Join Date
    Nov 2010
    Age
    28
    Posts
    4,132
    Thanks given
    1,077
    Thanks received
    1,137
    Rep Power
    5000
    Code tags please. And that command is not going to work, what are you trying to do?
    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

Similar Threads

  1. Replies: 3
    Last Post: 01-13-2012, 06:49 AM
  2. class, interface, or enum expected
    By buckley183 in forum Help
    Replies: 0
    Last Post: 06-18-2011, 12:36 PM
  3. HELP, class, interface, or enum expected
    By resurrect in forum Help
    Replies: 4
    Last Post: 06-19-2010, 08:10 PM
  4. Replies: 6
    Last Post: 03-29-2010, 06:32 PM
  5. Class, interface, or enum expected
    By pillowfight in forum Help
    Replies: 10
    Last Post: 08-05-2009, 06:38 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •