• Log in or sign up for an account here: https://www.sythe.org/login

Error Unknown identifier

T0xicblood

Newcomer
Joined
Jul 5, 2008
Sythe Gold
0
Messages
6
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.
 
Find the line the error is on and post the whole procedure/function containing that line, as well as the whole error.
 
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 :)
 
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.
 
Ok thanks, but what will i do if it comes up more errors?
Is there an easy way to replace those errors?
 
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).
 
Runescape Gamblingrunescape gambling
Back
Top