Thread: 1 error (might be easy)

Results 1 to 8 of 8
  1. #1 1 error (might be easy) 
    Banned

    Join Date
    Jan 2009
    Posts
    2,178
    Thanks given
    135
    Thanks received
    158
    Rep Power
    0
    i used an TuT to add this donator rank got only one error

    .\net\com\codeusa\net\packethandler\Commands.java: 439: unreachable statement
    if (p.Donator == 1 && p.rights == 0) {
    ^
    Note: .\net\com\codeusa\clanchat\Room.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Reply With Quote  
     

  2. #2  
    I sfogliare Rune-server ad alta


    Join Date
    Nov 2008
    Age
    30
    Posts
    1,702
    Thanks given
    41
    Thanks received
    18
    Rep Power
    791
    Did you declare donator in player.java?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Serenity's Avatar
    Join Date
    Oct 2008
    Age
    35
    Posts
    2,327
    Thanks given
    43
    Thanks received
    44
    Rep Power
    389
    it unreachable -_- so its delcared show the rows above that line.

    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Jan 2009
    Posts
    2,178
    Thanks given
    135
    Thanks received
    158
    Rep Power
    0
    Quote Originally Posted by Serenity View Post
    it unreachable -_- so its delcared show the rows above that line.
    if (cmd[0].equals("yell")) {
    for (Player player : Server.engine.players) {
    if (player != null) {
    if (p.muteType == 1 || p.muteTimer > 0) {
    p.getActionSender().sendMessage(p, "You are muted and cannot yell until an administrator unmutes you.");
    return;
    if (p.Donator == 1 && p.rights == 0) {
    player.getActionSender().sendMessage(player, "<img=3> "+p.username+": <col=ff0000>"+playerCommand.substring(5));
    }
    if (p.rights == 0 && p.Donator == 0) {
    player.getActionSender().sendMessage(player, "<col=071CBF>[Player] <col=000000>"+p.username+": <col=ff0000>"+playerCommand.substring(5));
    }
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Jan 2009
    Posts
    2,178
    Thanks given
    135
    Thanks received
    158
    Rep Power
    0
    sorry putted wrong code in
    Reply With Quote  
     

  6. #6  
    Registered Member
    Serenity's Avatar
    Join Date
    Oct 2008
    Age
    35
    Posts
    2,327
    Thanks given
    43
    Thanks received
    44
    Rep Power
    389
    give the whole file you did something wrong.
    and put it in code tags.

    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Jan 2009
    Posts
    2,178
    Thanks given
    135
    Thanks received
    158
    Rep Power
    0
    omfg wait guys i made it lemme test and write if it doesnt work!
    Reply With Quote  
     

  8. #8  
    I sfogliare Rune-server ad alta


    Join Date
    Nov 2008
    Age
    30
    Posts
    1,702
    Thanks given
    41
    Thanks received
    18
    Rep Power
    791
    Quote Originally Posted by Serenity View Post
    it unreachable -_- so its delcared show the rows above that line.
    Ahh fuck just glanced and posted, didn't really read the error.
    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

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