Thread: getting this error. help a noob out plz :)

Results 1 to 7 of 7
  1. #1 getting this error. help a noob out plz :) 
    Chow down on these noodles
    OodlesOfNoodles's Avatar
    Join Date
    May 2011
    Posts
    1,819
    Thanks given
    235
    Thanks received
    91
    Rep Power
    55
    ok so im trying to add this awesome new hp thing and i get this error:
    Code:
    client.java:2375: cannot find symbol
    symbol  : method drawAdvancedSprite(int,int)
    location: class Sprite
                                                                    HPBarEmpty.drawA
    dvancedSprite(spriteDrawX - 28, spriteDrawY - 5);//3
                                                                              ^
    client.java:2378: cannot find symbol
    symbol  : method drawAdvancedSprite(int,int)
    location: class Sprite
                                                                    HPBarFull.drawAd
    vancedSprite(spriteDrawX - 27, spriteDrawY - 4);
                                                                             ^
    Note: client.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    2 errors
    Press any key to continue . . .
    this is the section of my client.java that i added it too.
    Code:
    			if(((Entity) (obj)).loopCycleStatus > loopCycle)
    			{
    							try {
    						npcScreenPos(((Entity) (obj)), ((Entity) (obj)).height + 15);
    						if (spriteDrawX > -1) {
    							int i1 = (((Entity) (obj)).currentHealth * 30) / ((Entity) (obj)).maxHealth;
    							if (i1 > 30) {
    								i1 = 30;
    							}
    							int HpPercent = (((Entity) (obj)).currentHealth * 54) / ((Entity) (obj)).maxHealth;
    							if (HpPercent > 54) {
    								HpPercent = 54;
    							}
    							if (!hitbarToggle) {
    								DrawingArea.method336(5, spriteDrawY - 3, spriteDrawX - 15, 65280, i1);
    								DrawingArea.method336(5, spriteDrawY - 3, (spriteDrawX - 15) + i1, 0xff0000, 30 - i1);
    							} else {
    								HPBarEmpty.drawAdvancedSprite(spriteDrawX - 28, spriteDrawY - 5);//3
    								int type = ((double)HpPercent/56 > 0.25) ? ((double)HpPercent/56 > 0.5) ?  0 : 2 : 3;
    								HPBarFull = new Sprite(sign.signlink.findcachedir() + "Sprites/Player/HP " + type + ".PNG", HpPercent, 7);
    								HPBarFull.drawAdvancedSprite(spriteDrawX - 27, spriteDrawY - 4);
    							}
    						}
    					} catch (Exception e) {
    					}
    }
    Reply With Quote  
     

  2. #2  
    Registered Member Azurite's Avatar
    Join Date
    Apr 2009
    Posts
    689
    Thanks given
    256
    Thanks received
    81
    Rep Power
    55
    You need a method named drawAdvancedSprite, with the params int and int. I don't think you have it or taking wrong params.
    Reply With Quote  
     

  3. #3  
    Chow down on these noodles
    OodlesOfNoodles's Avatar
    Join Date
    May 2011
    Posts
    1,819
    Thanks given
    235
    Thanks received
    91
    Rep Power
    55
    Quote Originally Posted by Azurite View Post
    You need a method named drawAdvancedSprite, with the params int and int. I don't think you have it or taking wrong params.
    thx how would i do that
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jan 2011
    Posts
    309
    Thanks given
    9
    Thanks received
    26
    Rep Power
    28
    Well where ever you are ripping code from get that function.

    EDIT: Found it for you.

    Code:
     public void drawAdvancedSprite(int i, int j) {
          int k = 256;
          i += SpritePosX;
          j += SpritePosY;
          int i1 = i + j * DrawingArea.width;
          int j1 = 0;
          int k1 = myHeight;
          int l1 = myWidth;
          int i2 = DrawingArea.width - l1;
          int j2 = 0;
          if (j < DrawingArea.topY) {
             int k2 = DrawingArea.topY - j;
             k1 -= k2;
             j = DrawingArea.topY;
             j1 += k2 * l1;
             i1 += k2 * DrawingArea.width;
          }
          if (j + k1 > DrawingArea.bottomY)
             k1 -= (j + k1) - DrawingArea.bottomY;
          if (i < DrawingArea.topX) {
             int l2 = DrawingArea.topX - i;
             l1 -= l2;
             i = DrawingArea.topX;
             j1 += l2;
             i1 += l2;
             j2 += l2;
             i2 += l2;
          }
          if (i + l1 > DrawingArea.bottomX) {
             int i3 = (i + l1) - DrawingArea.bottomX;
             l1 -= i3;
             j2 += i3;
             i2 += i3;
          }
          if (!(l1 <= 0 || k1 <= 0)) {
             drawAlphaSprite(j1, l1, DrawingArea.pixels, myPixels, j2, k1, i2, k, i1);
          }
       }
    Reply With Quote  
     

  5. #5  
    Chow down on these noodles
    OodlesOfNoodles's Avatar
    Join Date
    May 2011
    Posts
    1,819
    Thanks given
    235
    Thanks received
    91
    Rep Power
    55
    Quote Originally Posted by Fearful View Post
    Well where ever you are ripping code from get that function.
    erm.. im ripping it from the tutorial i linked..
    http://www.rune-server.org/runescape...l?referrerid=0
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jan 2011
    Posts
    309
    Thanks given
    9
    Thanks received
    26
    Rep Power
    28
    I posted the method above.
    Reply With Quote  
     

  7. #7  
    Chow down on these noodles
    OodlesOfNoodles's Avatar
    Join Date
    May 2011
    Posts
    1,819
    Thanks given
    235
    Thanks received
    91
    Rep Power
    55
    now i get this error:
    Code:
    client.java:1718: cannot find symbol
    symbol  : variable SpritePosX
    location: class client
          i += SpritePosX;
               ^
    client.java:1719: cannot find symbol
    symbol  : variable SpritePosY
    location: class client
          j += SpritePosY;
               ^
    client.java:1751: cannot find symbol
    symbol  : variable myPixels
    location: class client
             drawAlphaSprite(j1, l1, DrawingArea.pixels, myPixels, j2, k1, i2, k, i1
    );
                                                         ^
    client.java:2413: cannot find symbol
    symbol  : method drawAdvancedSprite(int,int)
    location: class Sprite
                                                                    HPBarEmpty.drawA
    dvancedSprite(spriteDrawX - 28, spriteDrawY - 5);//3
                                                                              ^
    client.java:2416: cannot find symbol
    symbol  : method drawAdvancedSprite(int,int)
    location: class Sprite
                                                                    HPBarFull.drawAd
    vancedSprite(spriteDrawX - 27, spriteDrawY - 4);
                                                                             ^
    Note: client.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    5 errors
    Press any key to continue . . .
    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. dementhium run error ( i'm noob )
    By kawzer in forum Help
    Replies: 1
    Last Post: 08-10-2011, 12:34 AM
  2. Compiler Error...Im a Noob
    By IxIi in forum Help
    Replies: 1
    Last Post: 02-10-2011, 10:36 AM
  3. my noob error :'(
    By natsu in forum Help
    Replies: 6
    Last Post: 12-24-2009, 11:14 AM
  4. 1 error plz help ima noob
    By Nazi Fish in forum Help
    Replies: 7
    Last Post: 02-06-2009, 01:08 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
  •