Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
  • Cannot resolve constructor 'Area(int, int, int, int, int)'


    s1mple
     Share

    Recommended Posts

    Okay, this might be a silly question, but why am I getting a "Cannot resolve constructor 'Area(int, int, int, int, int)'" error when I try to define a new Area?

    I'm following Computer's DreamBot scripting tutorials so I could get my feet wet and understand a bit more of DreamBot's API. But when I input the tile's into the Area, I keep getting the error.

    Here is the code:

        Area bankArea = new Area(3181, 3433, 3185, 3447, 0);

    I would really appreciate if someone could tell me what I'm doing wrong. 
    (Yes I imported java.awt.geom.Area)

    Edited by s1mple
    Link to comment
    Share on other sites

    2 hours ago, CodeNinja said:

    because you imported the java Area class and not the area class from dreambot

    lmao thanks, im a professional retard

    Edited by s1mple
    Link to comment
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
     Share

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.