Thread: [Dementhium 639] Spam on death (Skills.java)

Results 1 to 3 of 3
  1. #1 [Dementhium 639] Spam on death (Skills.java) 
    Registered Member wildking72's Avatar
    Join Date
    Sep 2011
    Age
    24
    Posts
    506
    Thanks given
    62
    Thanks received
    36
    Rep Power
    11
    I have added a pk point system and I have tried making the death of another player give the killer a point but it spams the chat box with the first message and spams the command prompt with errors
    Code:
    lp.sendMessage(player.randomDeath() + "<col=ff0000>" + player.getUsername() + "</col>!");
      						player.sendMessage("You were killed by " + lp.getUsername());
    						settings.pkPoints = (settings.pkPoints + 1);
    						lp.sendMessage("You have " + player.getPkPoints() + ".");
    When I remove these 2 things it doesn't spam or give errors
    Code:
    settings.pkPoints = (settings.pkPoints + 1);
    						lp.sendMessage("You have " + player.getPkPoints() + ".");
    What do you think is wrong?
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Sep 2009
    Posts
    1,878
    Thanks given
    411
    Thanks received
    1,637
    Rep Power
    0
    Settings class for pk points must be nulled.
    Reply With Quote  
     

  3. #3  
    Registered Member wildking72's Avatar
    Join Date
    Sep 2011
    Age
    24
    Posts
    506
    Thanks given
    62
    Thanks received
    36
    Rep Power
    11
    What is another way to add 1 points onto it?
    I have a set and get in player.java
    But player.getPkPoints()++ wont work or player.getPkPoints() + 1 doesn't work
    ALL BULLSHIT
    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. [639]Adding a drop on Death[639]
    By `Eclipse in forum Snippets
    Replies: 20
    Last Post: 06-19-2012, 10:21 AM
  2. Replies: 4
    Last Post: 01-31-2012, 09:17 PM
  3. dementhium 639 java heap error in eclipse
    By Zᴀᴄʜ in forum Help
    Replies: 4
    Last Post: 12-21-2011, 02:38 AM
  4. [639] Dementhium 639 Combat re done
    By Boxxy in forum Buying
    Replies: 1
    Last Post: 11-17-2011, 09:54 AM
  5. [Dementhium]Item kept on death[Dementhium]
    By maffia-rpg in forum Help
    Replies: 4
    Last Post: 07-19-2011, 02:41 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
  •