Results 1 to 3 of 3

Thread: Need help with Unknown declaration error

  1. #1
    Join Date
    Jun 2015
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default Need help with Unknown declaration error

    Greetings!
    I dusted off an old NMZ script from half a year ago, after a break from OSRS and formatting my computer,
    I find that one of the files (meant for using your own host in NMZ) in the version I have preserved won't compile. The error is as follows:
    Error: Unknown declaration "Interface_GetChildText" at line 168.
    Here is the function in its entirety:
    Code:
    function Interface_BossScreen: boolean;
    var
      T: TReflectTimer;
    begin
      T.Restart;
      repeat
        Result := (Pos('Available bosses', Interface_GetChildText(187, 0, 2)) > 0);
        Wait(100+Random(200));
      until(Result)or(T.ElapsedTime > 15000);
    end;
    It uses f-include and OSR-Reflection
    I set up Simba according to all the guides and tried looking for clues on how to solve this, or even a solution, on the forum and elsewhere to no avail.
    The main script itself seems to have no problem compiling.
    Thank you for your time and happy holidays!

  2. #2
    Join Date
    Oct 2006
    Posts
    6,752
    Mentioned
    95 Post(s)
    Quoted
    532 Post(s)

    Default

    Well as the error says, it can't find the function "Interface_GetChildText".. That is not a function within the reflection include so I would suggest asking the person you bought the script from for more help(assuming he is still around).
    “The long-lived and those who will die soonest lose the same thing. The present is all that they can give up, since that is all you have, and what you do not have, you cannot lose.” - Marcus Aurelius

  3. #3
    Join Date
    Jun 2015
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Kyle View Post
    Well as the error says, it can't find the function "Interface_GetChildText".. That is not a function within the reflection include so I would suggest asking the person you bought the script from for more help(assuming he is still around).
    I'll try to do that. I grepped through both includes and found no trace of it from either. It's a good reason to learn the basics of scripting now
    Thanks!

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
  •