Thread: Errors

Results 1 to 7 of 7
  1. #1 Errors 
    Registered Member
    Join Date
    Jan 2014
    Posts
    142
    Thanks given
    9
    Thanks received
    0
    Rep Power
    11
    I was trying to add a :layers command which worked but then after it worked i got this error!



    Does anyone have any idea why this error is here and how to get rid of it!?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jan 2014
    Posts
    26
    Thanks given
    11
    Thanks received
    4
    Rep Power
    14
    Post the command you're trying to add.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jan 2014
    Posts
    142
    Thanks given
    9
    Thanks received
    0
    Rep Power
    11
    I took it out. its not the command anymore but here.

    This is the area i was messing around with to add the :: players command

    if (playerCommand.startsWith("trade") && c.teleBlockLength == 0) {
    c.getPA().startTeleport(2605, 3097, 0, "modern");
    c.sendMessage("You teleport to the trade area.");
    }
    if (playerCommand.equalsIgnoreCase("request")) {
    if (System.currentTimeMillis() - c.lastHelp < 300000) {
    c.sendMessage("You can only do this every 3 mins!.");
    }
    for (int j = 0; j < Server.playerHandler.players.length; j++) {
    if (Server.playerHandler.players[j] != null) {
    Client c2 = (Client)Server.playerHandler.players[j];
    if(Connection.isMuted(c)){
    c.sendMessage("You can't ask for help when you are muted.");
    return;
    }
    if (c.Jail == true) {
    c.sendMessage("You can't ask for help in jail.");
    return;
    }
    if (PlayerHandler.
    [j].playerRights > 0 && PlayerHandler.players[j].playerRights < 4 && System.currentTimeMillis() - c.lastHelp > 300000) {
    c2.sendMessage("[HELP MESSAGE] <shad=15536940>"+Misc.optimizeText(c.playerName)+" </shad> Has requested help.");
    c.lastHelp = System.currentTimeMillis();
    }
    }
    }
    }

    if (playerCommand.equalsIgnoreCase("players")) {
    c.sendMessage("There are currently "+PlayerHandler.getPlayerCount()+ " players online.");
    c.getPA().sendFrame126("Online Players", 8144);
    c.getPA().sendFrame126("@dbl@Online players(" + PlayerHandler.getPlayerCount()+ "):", 8145);
    int line = 8147;
    for (int i = 1; i < Config.MAX_PLAYERS; i++) {
    Client p = c.getClient(i);
    if (!c.validClient(i))
    continue;
    if (p.playerName != null) {
    String title = "";
    if (p.playerRights == 1) {
    title = "Mod, ";
    } else if (p.playerRights == 2) {
    title = "Admin, ";
    }
    title += "level-" + p.combatLevel;
    String extra = "";
    if (c.playerRights > 0) {
    extra = "(" + p.playerId + ") ";
    }
    c.getPA().sendFrame126("@dre@" + extra + p.playerName + "@dbl@ ("+ title + ") @dre@Kills: @dbl@ " + p.KC + ", @dre@Deaths: @dbl@"+ p.DC, line);
    line++;
    }
    }
    c.getPA().showInterface(8134);
    c.flushOutStream();
    }
    if(playerCommand.startsWith("return")) {
    c.isNpc = false;
    c.updateRequired = true;
    c.appearanceUpdateRequired = true;

    }
    if (playerCommand.startsWith("commands")){
    c.sendMessage("<shad=60811334> <img=1> Deadly-Pkerz Commands Available <img=1>");
    c.sendMessage(" :kp Shows you the amount of PKP you have!");
    c.sendMessage(" ::changepassword *newpasswordhere* changes your password!");
    c.sendMessage(" ::boss tell's you the bosses and the drop rate!");
    c.sendMessage(" ::forums give you the link to the forums!");
    c.sendMessage(" ::help Takes you to the help zone");
    }
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Nov 2013
    Posts
    1,015
    Thanks given
    240
    Thanks received
    265
    Rep Power
    0
    You still have yet to learn the code option when posting, please redo all posts.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Edd -'s Avatar
    Join Date
    Jul 2011
    Posts
    664
    Thanks given
    62
    Thanks received
    43
    Rep Power
    84
    Code:
    if (PlayerHandler.
    [j].playerRights > 0 && PlayerHandler.players[j].playerRights < 4 && System.currentTimeMillis() - c.lastHelp > 300000) {
    c2.sendMessage("[HELP MESSAGE] <shad=15536940>"+Misc.optimizeText(c.playerName)+" </shad> Has requested help.");
    c.lastHelp = System.currentTimeMillis();
    }
    }
    }
    }
    ?
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    May 2013
    Posts
    1,169
    Thanks given
    28
    Thanks received
    133
    Rep Power
    53
    Quote Originally Posted by Santiago View Post
    You still have yet to learn the code option when posting, please redo all posts.
    Are you like OCD or something rofl
    If only I hadn't given you up, my life could've been different.
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Nov 2013
    Posts
    1,015
    Thanks given
    240
    Thanks received
    265
    Rep Power
    0
    Quote Originally Posted by True Faith View Post
    Are you like OCD or something rofl
    It's just very unorganized.. <--- That just proved I am o.o
    Reply With Quote  
     

  8. Thankful user:



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. Same error over and over?!!
    By phantomphreak in forum Tutorials
    Replies: 4
    Last Post: 09-28-2007, 01:20 AM
  2. Basic Compile Errors
    By Daniel in forum Tutorials
    Replies: 4
    Last Post: 09-17-2007, 12:54 PM
  3. [HELP]Render Error
    By Big J in forum General
    Replies: 3
    Last Post: 07-30-2007, 01:01 AM
  4. Error. Please reboot me :)
    By Inside Sin in forum Showcase
    Replies: 4
    Last Post: 05-13-2007, 03:39 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •