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
  • Cannot resolve constructor 'Area(int, int, int, int, int)'


    s1mple

    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)

    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

    Link to comment
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • 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.