Results 1 to 4 of 4

Thread: Bah!! Identifier Expected in Script.

  1. #1
    Join Date
    Feb 2008
    Posts
    50
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Bah!! Identifier Expected in Script.

    Getting another error!! PLz help

    It opens up Login.scar Tab next to script tab, and says this

    "V=[Runtime Error] : Exception: Access violation at address 006CF23E in module 'scar.exe'. Read of address FFFFFFFC in line 227 in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Core/Login.scar"

    In the box at the bottom.

    Can someone run my script and Fix it?

    NEW EDIT: STILL NEED HELP!!
    "Our youth are not failing the system; the system is failing our youth. Ironically, the very youth who are being treated the worst are the young people who are going to lead us out of this nightmare." - Rachel Jackson

  2. #2
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Instead of attaching, please post the script
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  3. #3
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Here we go:

    SCAR Code:
    program powerminer;

    {.include SRL/SRL.scar}

    const
    rockcolor1= 472123;//set the color of the rock
    rockcolor2= 567243;//set color of rock (these aren't the real colors)

    var x,y,randomm: integer;
    IronOre: integer;
    var tx,ty,randommm: integer;



    Procedure DeclarePlayers; // this procedure is used to logg players in
    begin
         HowManyPlayers  :=1;               // Set Number of Players here.
         NumberOfPlayers(HowManyPlayers);   // Sets the Players Array Length;
         CurrentPlayer:=0;                // CurrentPlayer = Array Index

         Players[0].Name :='username';//Username
         Players[0].Pass :='pass';//Password
         Players[0].Nick :='ser';//3-4 Letters from your username NOT THE FIRST
         Players[0].Active:=True;//Autoing? True/False


    end;
    ////////////////////////////////////////////////////////////////////////////////

    procedure DTMs;
    begin
      IronOre := DTMFromString('78DA6314616060E06740011EBA0A0C5C409A1' +
           '188FF0301A3009021CD801530C26876202148408D1C9010439755' +
           '4055230F24B8B09B0057230E245809A801F9898D801A4E20C18D5' +
           'F0D006EB005D8');
    end;

    Procedure Randoms;
    Begin
    FindTalk;
    FindNormalRandoms;
    SolveChatRandom;
    FindLamp('Mining');
    SolvePinball;
    DwarfItem;
    If(FindFight)Then
    Begin
    MakeCompass('N');
    RunTo('E', True);
    Wait(7000 +Random(3000));
    RunTo('W', True);
    End;
    End;


    procedure antiban;
    begin
     randomm := Random(4)
      case randomm of


      0:                begin

                        Wait(3591+(random(287)));
                        RandomRClick;
                        Wait(3591+(random(287)));
                        SetAngle(True);
                        Randoms;
                       end;

      1:     begin
             Wait(3694+(random(791)));
             GameTab(random(13)+1);
             Randoms;
             Wait(3694+(random(791)));
             GameTab(4);
             end;

      2:                begin
                        Wait(3294+(random(873)));
                        Randoms;
                        HoverSkill('Woodcutting' ,false);
                        Wait(3294+(random(873)));
                        end;

      3:     begin
              Wait(3694+(random(791)));
              GameTab(random(13)+1);
              Randoms;
              Wait(3694+(random(791)));
              GameTab(4);
              end;
    end;
    end;



    Procedure minerock;
    begin

      if not LoggedIn then
      Exit;

        repeat
        if FindObjCustom(x, y, ['Min', 'ine'], [rockcolor1, rockcolor2], 7) then
        begin

          MoveMouseSmoothEx(x,y,  20,40,45,25,20);
          FTWait(1);
          clickmouse(x,y,false);
          Wait(500+(random(150)));

            ChooseOption('ine')
            randoms
            antiban;
            writeln('found rock');

              end else
              writeln('couldnt find rock');
              randoms;
              antiban;
              antiban;
              antiban;

                until( InvFull )
                end;
               
    procedure drop;
    begin
    if(FindDTM(IronOre, tx, ty, 550, 210, 730, 462)) then
    begin
      Mouse(tx,ty,5,5,False);
      ChooseOption('rop');
    end;
    end;


    begin
    SetupSRL;
     DTMs;
      DeclarePlayers;
       LoginPlayer;
        repeat
         minerock;
         drop;
        until(IsFKeyDown(3));
       FreeDTM(IronOre);
    End.

    Things I Changed!

    1. For every Begin you need an end (Added an 'end');
    2. Your MainLoop can't be a procedure
    3. Sorted out the standards a bit


    Hope I Helped

  4. #4
    Join Date
    Feb 2008
    Posts
    50
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you =]
    "Our youth are not failing the system; the system is failing our youth. Ironically, the very youth who are being treated the worst are the young people who are going to lead us out of this nightmare." - Rachel Jackson

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Identifier expected in script...But Why?
    By Macrosoft in forum OSR Help
    Replies: 10
    Last Post: 01-27-2012, 06:33 AM
  2. Identifier expected in script
    By StrikerX in forum OSR Help
    Replies: 2
    Last Post: 04-11-2008, 12:21 PM
  3. Identifier expected in script
    By Becks in forum OSR Help
    Replies: 6
    Last Post: 04-11-2008, 06:41 AM
  4. Identifier expected in script
    By wasapiguy2 in forum OSR Help
    Replies: 2
    Last Post: 03-25-2008, 09:57 AM
  5. Identifier expected in script?
    By steth1010 in forum OSR Help
    Replies: 6
    Last Post: 05-06-2007, 09:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •