Results 1 to 3 of 3

Thread: Unknown identifier problem

  1. #1
    Join Date
    Nov 2011
    Posts
    118
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default Unknown identifier problem

    Hello, I'm trying my best to try and figure out how to make the Nature rune script renew pouches by fiddling around with various of codes of various scripts, however, when I add part of the code that requires the script to renew the pouch, i get an error called

    Simba Code:
    [Error] (1258:13): Unknown identifier 'Renew' at line 1257

    Could anyone explain why this is happening and what I should do to fix this?
    (kinda took this from PatDuffy's code, credit goes to him(if i'm not allowed to post this then please remove it!)):
    Simba Code:
    function GraahkGoneDie:Boolean;
    begin
      if FindChatBoxText('before your familiar vanishes',8,127)then
      begin
         if not HasPouch then
         begin
           Result:=True;
         end else
          if InteractFamiliar('Renew') then
          begin
            Inc(Renew);
            Result:=False;
          end;
      end else
        Result:=False;
    end;

    Hopefully if this works, i can implement it to my bandit killer also

    Thank you.

  2. #2
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Is "Renew" a valid argument for that function? It appears that you are passing in the wrong type of identifier that the function needs.
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  3. #3
    Join Date
    Nov 2011
    Posts
    118
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Ah, it is not. I'll look through and add it in.

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
  •