Thread: Little help here anyone?

Results 1 to 4 of 4
  1. #1 Little help here anyone? 
    Registered Member
    Join Date
    Apr 2013
    Posts
    118
    Thanks given
    33
    Thanks received
    8
    Rep Power
    11
    Im trying to make a cape heal a player when wearing every 10 seconds this is my code i add in playerassist.java




    public static void healPlayer(Player client) {
    Server.eventContainer.addEvent(new CycleEvent(10, true) {
    public void execute() {
    if (client.disconnected || client.playerEquipment[client.playerCape] != capeId) {
    this.stop();
    }
    int heal = 120;
    client.playerLevel[3] += heal;
    client.getPA().refreshSkill(3);
    }
    });

    }







    This is the Errors I get


    src\game\player\PlayerAssistant.java:128: error: constructor CycleEvent in class
    CycleEvent cannot be applied to given types;
    Server.eventContainer.addEvent(new CycleEvent(10, true) {
    ^
    required: no arguments
    found: int,boolean
    reason: actual and formal argument lists differ in length
    src\game\player\PlayerAssistant.java:128: error: <anonymous game.player.PlayerAs
    sistant$1> is not abstract and does not override abstract method stop() in Cycle
    Event
    Server.eventContainer.addEvent(new CycleEvent(10, true) {
    ^
    src\game\player\PlayerAssistant.java:130: error: local variable client is access
    ed from within inner class; needs to be declared final
    if (client.disconnected || client.playerEquipmen
    t[client.playerCape] != 1052) {
    ^
    src\game\player\PlayerAssistant.java:130: error: local variable client is access
    ed from within inner class; needs to be declared final
    if (client.disconnected || client.playerEquipmen
    t[client.playerCape] != 1052) {
    ^
    src\game\player\PlayerAssistant.java:130: error: local variable client is access
    ed from within inner class; needs to be declared final
    if (client.disconnected || client.playerEquipmen
    t[client.playerCape] != 1052) {

    ^
    src\game\player\PlayerAssistant.java:134: error: local variable client is access
    ed from within inner class; needs to be declared final
    client.playerLevel[3] += heal;
    ^
    src\game\player\PlayerAssistant.java:135: error: local variable client is access
    ed from within inner class; needs to be declared final
    client.getPA().refreshSkill(3);
    ^
    src\game\player\PlayerAssistant.java:128: error: cannot find symbol
    Server.eventContainer.addEvent(new CycleEvent(10, true) {
    ^
    symbol: variable eventContainer
    location: class Server
    8 errors
    Press any key to continue . . .



    NOTE I AM USING KRITHIUM SOURCE
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Apr 2013
    Posts
    118
    Thanks given
    33
    Thanks received
    8
    Rep Power
    11
    bump
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2013
    Posts
    118
    Thanks given
    33
    Thanks received
    8
    Rep Power
    11
    bump
    Reply With Quote  
     

  4. #4  
    Project Drop-Zone Owner & The BLOOD Gang Always Banging RED


    Join Date
    May 2013
    Age
    28
    Posts
    2,992
    Thanks given
    5
    Thanks received
    937
    Rep Power
    183
    Can you download eclipse and I can probably fix them errors for you
    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. Little Help Here please.
    By 'Glory in forum Help
    Replies: 2
    Last Post: 10-01-2010, 04:36 AM
  2. little help here please
    By Ichigo1019 in forum Help
    Replies: 1
    Last Post: 03-17-2010, 02:06 PM
  3. little help here guys.......
    By razeen72 in forum Chat
    Replies: 2
    Last Post: 08-17-2009, 03:18 PM
  4. [508]Little help here[rep+]
    By Ed in forum Help
    Replies: 15
    Last Post: 07-21-2009, 09:15 AM
  5. I need a little help here. =]
    By Ash in forum Help
    Replies: 4
    Last Post: 01-28-2009, 09:04 PM
Tags for this Thread

View Tag Cloud

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