Error Unknown identifier

Discussion in 'Scar/Simba Help' started by T0xicblood, Jul 5, 2008.

Error Unknown identifier
  1. Unread #1 - Jul 5, 2008 at 3:39 PM
  2. T0xicblood
    Joined:
    Jul 5, 2008
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0

    T0xicblood Newcomer

    Error Unknown identifier

    Hello I'm new with Scar (actually I started today) so i need some help.

    When I try to run a script it allmost every time comes an error there it says "unknown identifier".

    I have no idea what to do so please help me. If you need more info about anything just write it.
     
  3. Unread #2 - Jul 5, 2008 at 4:20 PM
  4. Runescapian321
    Joined:
    Sep 19, 2007
    Posts:
    179
    Referrals:
    0
    Sythe Gold:
    0

    Runescapian321 Active Member

    Error Unknown identifier

    Find the line the error is on and post the whole procedure/function containing that line, as well as the whole error.
     
  5. Unread #3 - Jul 6, 2008 at 6:04 AM
  6. T0xicblood
    Joined:
    Jul 5, 2008
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0

    T0xicblood Newcomer

    Error Unknown identifier

    Allright, this is the error:
    Line 239: [Error] (13060:1): Unknown identifier 'RunAwayDirection' in script C:\Users\****\Desktop\Ny mapp (2)\Any Tree Power Chopper 4.scar

    And Here's the Procedure with the line. The line with error is the fat underlined.
    //->Anti Randoms<-//
    Procedure TheAntiRandoms;
    Begin
    Status('Random Check')
    FindNormalRandoms;
    wait(10)
    FindTalk;
    wait(10)
    if (FindFight) then
    begin
    Status('Running From a fight.')
    RunAwayDirection('E');
    Wait(8500 + random(3500));
    RunBack;
    end;
    Wait(10);
    FindTalk;
    end;


    And by the way thanks for the fast answer i hope you can solve this :)
     
  7. Unread #4 - Jul 6, 2008 at 11:09 AM
  8. Runescapian321
    Joined:
    Sep 19, 2007
    Posts:
    179
    Referrals:
    0
    Sythe Gold:
    0

    Runescapian321 Active Member

    Error Unknown identifier

    Replace that with this -

    Code:
    //->Anti Randoms<-//
    Procedure TheAntiRandoms;
    Begin
      Status('Random Check')
      FindNormalRandoms;
      wait(10)
      FindTalk;
      wait(10)
      if (FindFight) then
      begin
        Status('Running From a fight.')
        RunAway('E',true,1,8500+random(3500));
      end;
      Wait(10);
      FindTalk;
    end;
    However, that's a sign of an outdated script

    1. It'll have lots of errors.
    2. It might not work after updated.
     
  9. Unread #5 - Jul 7, 2008 at 6:10 AM
  10. T0xicblood
    Joined:
    Jul 5, 2008
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0

    T0xicblood Newcomer

    Error Unknown identifier

    Ok thanks, but what will i do if it comes up more errors?
    Is there an easy way to replace those errors?
     
  11. Unread #6 - Jul 7, 2008 at 10:33 AM
  12. Runescapian321
    Joined:
    Sep 19, 2007
    Posts:
    179
    Referrals:
    0
    Sythe Gold:
    0

    Runescapian321 Active Member

    Error Unknown identifier

    If you're a decent scripter you'll be able to :p Otherwise...No, the only way of fixing them is knowing how. If you join SRL-Forums, theres probably more of whatever kind of script you're trying to use here, so you could use one of them instead (10 posts + week of registration gives you access to more scripts, but you must stay active).
     
  13. Unread #7 - Jul 8, 2008 at 7:41 AM
  14. T0xicblood
    Joined:
    Jul 5, 2008
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0

    T0xicblood Newcomer

    Error Unknown identifier

    Ok, thanks for everything.
     
< Duplicate identifier | problem with woodcuting scrpt >

Users viewing this thread
1 guest


 
 
Adblock breaks this site