Adblock breaks this site

Error Unknown identifier

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

  1. T0xicblood

    T0xicblood Newcomer

    Joined:
    Jul 5, 2008
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0
    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.
     
  2. Runescapian321

    Runescapian321 Active Member

    Joined:
    Sep 19, 2007
    Posts:
    179
    Referrals:
    0
    Sythe Gold:
    0
    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.
     
  3. T0xicblood

    T0xicblood Newcomer

    Joined:
    Jul 5, 2008
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0
    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 :)
     
  4. Runescapian321

    Runescapian321 Active Member

    Joined:
    Sep 19, 2007
    Posts:
    179
    Referrals:
    0
    Sythe Gold:
    0
    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.
     
  5. T0xicblood

    T0xicblood Newcomer

    Joined:
    Jul 5, 2008
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0
    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?
     
  6. Runescapian321

    Runescapian321 Active Member

    Joined:
    Sep 19, 2007
    Posts:
    179
    Referrals:
    0
    Sythe Gold:
    0
    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).
     
  7. T0xicblood

    T0xicblood Newcomer

    Joined:
    Jul 5, 2008
    Posts:
    6
    Referrals:
    0
    Sythe Gold:
    0
    Error Unknown identifier

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


 
 
Adblock breaks this site