Page 2 of 2 FirstFirst 12
Results 26 to 38 of 38

Thread: [RS3] SuperUser's Karamja Fisher

  1. #26
    Join Date
    Nov 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Error: Duplicate declaration "DeleteIndex" at line 298

    idk

  2. #27
    Join Date
    Aug 2014
    Location
    Michigan, USA
    Posts
    138
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    Quote Originally Posted by i am boo View Post
    Error: Duplicate declaration "DeleteIndex" at line 298

    idk
    Same. </3 ):

  3. #28
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    Just comment out the function "DeleteIndex" and it might work, it has to do with a new function in SRL which does the same thing.

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  4. #29
    Join Date
    Dec 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Loaded Font UpChars
    Loaded Font UpChars07
    Loaded Font UpChars07_s
    Loaded Font UpCharsEx
    Loaded Font XPChars
    Loaded Font UpChars_s
    Error: Duplicate declaration "DeleteIndex" at line 298
    Compiling failed.


    Anyone have a fix to this?

  5. #30
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    Quote Originally Posted by wutangkicksit View Post
    Loaded Font UpChars
    Loaded Font UpChars07
    Loaded Font UpChars07_s
    Loaded Font UpCharsEx
    Loaded Font XPChars
    Loaded Font UpChars_s
    Error: Duplicate declaration "DeleteIndex" at line 298
    Compiling failed.


    Anyone have a fix to this?
    Literally the post right above you...

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  6. #31
    Join Date
    Nov 2014
    Location
    The Hague, Netherlands
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Might be missing something obvious here but when i comment it out, it comes up with:

    Error: Unknown declaration "self" at line 302
    Compiling failed.

    I.e. it then finds an error here instead:

    begin
    for i := index to High(self) - 1 do
    self[i] := self[i + 1];

    SetLength(self, Length(self) - 1);
    end

  7. #32
    Join Date
    Dec 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Tried and did not work

  8. #33
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by chrisownsu View Post
    Might be missing something obvious here but when i comment it out, it comes up with:

    Error: Unknown declaration "self" at line 302
    Compiling failed.

    I.e. it then finds an error here instead:

    begin
    for i := index to High(self) - 1 do
    self[i] := self[i + 1];

    SetLength(self, Length(self) - 1);
    end
    Quote Originally Posted by wutangkicksit View Post
    Tried and did not work

    I wouldn't comment it out, I'd override it. The script is designed to work with the script's .deleteIndex(), SRL-6's may not be the same.

    Add an override; to the end of the function declaration, like so:
    Simba Code:
    procedure T2DPointArray.deleteIndex(const index : Integer); override;
    (note: I pulled that from another script - it's only supposed to show the concept for overriding a function. The actual declaration may be different.)
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  9. #34
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    Quote Originally Posted by chrisownsu View Post
    Might be missing something obvious here but when i comment it out, it comes up with:

    Error: Unknown declaration "self" at line 302
    Compiling failed.

    I.e. it then finds an error here instead:

    begin
    for i := index to High(self) - 1 do
    self[i] := self[i + 1];

    SetLength(self, Length(self) - 1);
    end
    Quote Originally Posted by wutangkicksit View Post
    Tried and did not work
    I have not tested the script but it should work. What is not working? What was your attempted fix? Post the code (just the section you changed) in [simba] [ /simba] tags without the space?

    You can delete the whole function T2DpointArray.DeleteIndex, if you know what that means. From where it says that line, click on the "begin" below it. It will highlight the "end" which corresponds to the end of the function (likely only ~10-15 lines below but I don't have Simba on this computer). You can delete the whole thing, right from T2DPointArray.Delete index down to the end of the function.

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  10. #35
    Join Date
    Nov 2014
    Location
    The Hague, Netherlands
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Sorry I feel pretty useless at the moment... I only started scripted about last week so I have 0 knowledge of how the scripting works.

    Specifically procedure T2DPointArray.deleteIndex(const index : Integer); is giving the error (I tried deleting the whole function like you said, aswell as overriding but both of them result in error compiling).

    deleting the function gave this: Error: Don't know which overloaded method to call with params (array [0..3] of Int32, Int32) at line 140
    Compiling failed. Line 140: self.canvas.Rectangle([0, 0, self.bounds.x2, 33], $21314e);

    So now I'm completely lost, sorry about that

  11. #36
    Join Date
    Dec 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Could someone please get a fix for this. Greatky appreciated.

  12. #37
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    Quote Originally Posted by chrisownsu View Post
    Sorry I feel pretty useless at the moment... I only started scripted about last week so I have 0 knowledge of how the scripting works.

    Specifically procedure T2DPointArray.deleteIndex(const index : Integer); is giving the error (I tried deleting the whole function like you said, aswell as overriding but both of them result in error compiling).

    deleting the function gave this: Error: Don't know which overloaded method to call with params (array [0..3] of Int32, Int32) at line 140
    Compiling failed. Line 140: self.canvas.Rectangle([0, 0, self.bounds.x2, 33], $21314e);

    So now I'm completely lost, sorry about that
    Well I've got good news and bad news.

    The good news is that it appears that you deleted the proper function and didn't break it by yourself.

    The bad news is that there appears to be another error on line 140 (the function you deleted was ~300 so it's not your fault). I haven't seen Superuser (the person who wrote this) around in a while so it's possible that the script is outdated unfortunately.

    I won't really have any Simba access for a few days or I'd help you out right now. Best of luck.

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  13. #38
    Join Date
    Nov 2014
    Location
    The Hague, Netherlands
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    thanks for clearing stuff up

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •