Thread: 2 Errors

Results 1 to 4 of 4
  1. #1 2 Errors 
    Registered Member
    Noosy's Avatar
    Join Date
    Feb 2008
    Age
    29
    Posts
    392
    Thanks given
    39
    Thanks received
    7
    Rep Power
    107
    Well, I'm trying to create a Pali-frameworked PvP server based off my other 508 server. Aside from changing coordinate booleans, I've also wanted to add the 'level range' to an overlay (where it says '116 -136' for example). So I downloaded a standard Z508 base, and found the code used to display it, modified it a tiny bit to suit Pali's framework. One problem, I'm missing a method and I can't seem to find it in Z508:

    Code:
    Compiling Lost Empire source files...
    .\palidino76\rs2\player\Player.java:2954: ')' expected
                String s = (append(j).append(" - ").append(i).toString();
                                                                        ^
    .\palidino76\rs2\player\Player.java:2954: cannot find symbol
    symbol  : method append(int)
    location: class palidino76.rs2.player.Player
                String s = (append(j).append(" - ").append(i).toString();
                            ^
    2 errors
    Press any key to continue . . .
    The code:
    Code:
        public void appendWilderness() {
    		if (Engine.inWilderness(this)) {
    			int i = combatLevel + wildyLevel;
            if(i > 126) {
                i = 126;
                int j = (combatLevel - wildyLevel) + ((combatLevel % 10 < 5 || (combatLevel - wildyLevel) % 10 >= 5) && combatLevel < 114 ? 1 : 2);
            if(j < 3) {
                j = 3;
                String s = (append(j).append(" - ").append(i).toString();
    		frames.setOverlay(this, 381);
    		frames.setString(this, s, 381, 1);
    				}
    			}
    		}
        }

    Does anyone have the method 'append'? >.<
    Attached image
    Reply With Quote  
     

  2. #2  
    SERGEANT OF THE MASTER SERGEANTS MOST IMPORTANT PERSON OF EXTREME SERGEANTS TO THE MAX!

    cube's Avatar
    Join Date
    Jun 2007
    Posts
    8,871
    Thanks given
    1,854
    Thanks received
    4,745
    Rep Power
    5000
    String s = j + " - " + i;

    Attached image

    Reply With Quote  
     

  3. #3  
    Registered Member
    minutes's Avatar
    Join Date
    Apr 2008
    Posts
    1,926
    Thanks given
    2
    Thanks received
    19
    Rep Power
    465
    public void appendWilderness() {
    if (Engine.inWilderness(this)) {
    int i = combatLevel + wildyLevel;
    if(i > 126) {
    i = 126;
    int j = (combatLevel - wildyLevel) + ((combatLevel % 10 < 5 || (combatLevel - wildyLevel) % 10 >= 5) && combatLevel < 114 ? 1 : 2);
    if(j < 3) {
    j = 3;
    String s = (append(j).append(" - ").append(i).toString());
    frames.setOverlay(this, 381);
    frames.setString(this, s, 381, 1);
    }
    }
    }
    }
    first error fixed, dont know how to fixs second one.



    click banner to join gtracer!
    Reply With Quote  
     

  4. #4  
    Registered Member
    Noosy's Avatar
    Join Date
    Feb 2008
    Age
    29
    Posts
    392
    Thanks given
    39
    Thanks received
    7
    Rep Power
    107
    Quote Originally Posted by S Quare Quxx View Post
    String s = j + " - " + i;
    How the fuck didn't I think about that? Thanks Quxx.
    Attached image
    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
  •