Thread: Wtf can't find method??

Results 1 to 6 of 6
  1. #1 Wtf can't find method?? 
    Registered Member
    Darna's Avatar
    Join Date
    Jan 2008
    Age
    31
    Posts
    488
    Thanks given
    11
    Thanks received
    4
    Rep Power
    163
    Code:
    NPCHandler.java:2618: cannot find symbol
    symbol  : method addSkillXp(int,int)
    location: class client
    temp.addSkillXp(750, 18);
        ^
    NPCHandler.java:2623: cannot find symbol
    symbol  : method addSkillXp(int,int)
    location: class client
    temp.addSkillXp(1500, 18);
        ^
    NPCHandler.java:2628: cannot find symbol
    symbol  : method addSkillXp(int,int)
    location: class client
    temp.addSkillXp(200, 18);
        ^
    NPCHandler.java:2633: cannot find symbol
    symbol  : method addSkillXp(int,int)
    location: class client
    temp.addSkillXp(2000, 18);
        ^
    NPCHandler.java:2638: cannot find symbol
    symbol  : method addSkillXp(int,int)
    location: class client
    temp.addSkillXp(3000, 18);
        ^
    K
    Here is method for addskillxp
    Code:
    public boolean addSkillXP(int amount, int skill) {
    		if (expLock) {
        return false;
    }
    		if (randomed) {
    			sM("You must answer the genie before you can gain experience!");
    			return false;
    		}
    		if ((amount + playerXP[skill]) < 0 || amount + playerXP[skill] > 200000000 || playerXP[skill] >= 200000000) {
    			playerXP[skill] = 200000000;
    			refreshSkills();
    			return false;
    		}
    		int oldLevel = getLevelForXP(playerXP[skill]);
    		// int[] statId = {4004, 4008, 4006, 4016, 4010, 4012, 4014, 4034, 4038,
    		// 4026, 4032, 4036, 4024, 4030, 4028, 4020, 4018, 4022, 4152};
    		playerXP[skill] += amount;
    		if (oldLevel < getLevelForXP(playerXP[skill])) {
    			// if(oldLevel >= 85)
    			specGFX(199);
    			//checkPlayerCapes.achievedMax(skill, this);
    
    			playerLevel[skill] = getLevelForXP(playerXP[skill]);
    			// stillgfx(623, absY, absX);
    			// levelup(skill);
    			updateRequired = true;
    			appearanceUpdateRequired = true;
    			sM("Congratulations, you just advanced a "
    					+ statName[skill] + " level.");
    			getTotalLevel();
    			if (playerLevel[skill] > 90)
    			// sendFrame126(playerName + " (" + combatLevel + ")", 6572);
    			setSkillLevel(skill, playerLevel[skill], playerXP[skill]);
    		}
    			refreshSkills();
    		// setSkillLevel(skill, playerLevel[skill], playerXP[skill]);
    		if (skill == 2) {
    			CalculateMaxHit();
    		}
    		return true;
    
    	}
    What i must do to compile this shit

    Reply With Quote  
     

  2. #2  
    Registered Member
    Darna's Avatar
    Join Date
    Jan 2008
    Age
    31
    Posts
    488
    Thanks given
    11
    Thanks received
    4
    Rep Power
    163
    someone?

    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Feb 2009
    Age
    27
    Posts
    2,861
    Thanks given
    127
    Thanks received
    226
    Rep Power
    700
    What method is the addSkillXP method in?
    Reply With Quote  
     

  4. #4  
    Community Veteran


    Join Date
    Jan 2008
    Posts
    2,659
    Thanks given
    494
    Thanks received
    627
    Rep Power
    980
    Is addSkillXP(int, int) actually in your client class?
    ~iKilem
    Reply With Quote  
     

  5. #5  
    Registered Member
    ViperSniper's Avatar
    Join Date
    Apr 2007
    Age
    30
    Posts
    2,417
    Thanks given
    367
    Thanks received
    82
    Rep Power
    976
    capitalize the p on Xp(
    :indeed:
    Reply With Quote  
     

  6. #6  
    Registered Member
    Darna's Avatar
    Join Date
    Jan 2008
    Age
    31
    Posts
    488
    Thanks given
    11
    Thanks received
    4
    Rep Power
    163
    Haha thx Viper worked
    Shitty Java case sensitive

    Rep+ 4 u

    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
  •