Results 1 to 3 of 3

Thread: Help Unknown Identifier.

  1. #1
    Join Date
    Jul 2008
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help Unknown Identifier.

    Hey for my script i get the error Line 12:
    [Error] (12:1): Unknown identifier 'HowManyPlayers' in script H:\Fonts\Home\SCAR 3.15\Scripts\My Scripts\My Power Mine.scar.
    also everything is up to scratch and updated.

    this is my script:

    SCAR Code:
    //Major Cred to iron_man_ftw, Narcle



    const
    RockColor1 = 2437977;
    RockColor2 = 2306390;

    procedure DeclarePlayers;
    begin

         HowManyPlayers := 1;
         NumberOfPlayers(HowManyPlayers);
         CurrentPlayer:= 0

         Players[0].Name   := '';
         Players[0].Pass   := '';
         Players[0].Nick   := '';
         Players[0].Active := True;
         Players[0].Booleans[0] := True;//True for equipped Pickaxe. False for in Inv

    end;

    {                             ____
                             NO  /____\ Entrance
    <><><><><><><><><><><><><><>|Master|<><><><><><><><><><><><><><><><>
                                |______|                                }



    Procedure AntiRandoms;
    begin
      If(FindFight)then
      RunAway('N', True,1,15000);
      FindNormalRandoms;
      FindLamp('Mining');
    end;


    procedure AntiBan;
    begin
      if not LoggedIn then Exit;
      case Random(30) of
        1: RandomRClick;
        2: HoverSkill('Woodcutting', False);
        3: RandomMovement;
        4: BoredHuman;
        5: DoEmote(400 +Random(90));
      end;
    end;


    procedure RockMining;
    begin
      repeat //move repeat up here
        if not LoggedIn then //place failsafe inside repeat
         Exit;

        if FindObjCustom(x, y, ['Min', 'ine'], [RockColor1, RockColor2], 7) then//just this one is needed
        begin//added a begin
          case Random(2) of
            0: begin
                 Mouse(x, y, 4, 4,false);
                 ChooseOption('ine');
               end;
            1:Mouse(x, y, 4, 4, True);
          end;
          Wait(2000+random(1000));//wait for it to be mined
        end;//added a end
      until (InvFull)
    end;



    procedure DropOres;

    var
       i: integer;

    begin
         if (InvFull) then
         case Players[CurrentPlayer].Booleans[0] of
         True: DropAll;
         False: begin
                for i := 2 to 28 do
                DropItem(i);
                end;
            end;
    Wait(500 + random(1501));
    end;


    Procedure Signature;
    begin
    Writeln('  ___    ___   ___   __    __ ___  ___  ');
    wait(50)
    Writeln(' |   \  /   | |   | |  \  |  |   |/  /  ');
    wait(50)
    Writeln(' |    \/    | |   | |   \ |  |      /   ');
    wait(50)
    Writeln(' |   |\/|   | |   | |    \|  |      \   ');
    wait(50)
    Writeln(' |   |  |   | |   | |  |\    |       \  ');
    wait(50)
    Writeln(' |___|  |___| |___| |__| \___|___/\___\ ');
    end;


    begin
      SetupSRL;
      Signature;
      ActivateClient;
      repeat
        RockMining;
        AntiBan;
        DropOres;
        AntiBan;
      until (False)
    end.

    Please help....

  2. #2
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    You haven't included SRL at the top of your script (plus you don't even have a program ScriptName; line).
    :-)

  3. #3
    Join Date
    Jul 2008
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Woops sorry copied and pasted of my old thread cos i hadnt saveon on my usb

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Unknown Identifier
    By Torrent of Flame in forum OSR Help
    Replies: 2
    Last Post: 02-24-2008, 10:44 AM
  2. Unknown Identifier.
    By iunseeni in forum OSR Help
    Replies: 2
    Last Post: 11-04-2007, 07:36 PM
  3. Unknown Identifier?!
    By ~PuRePoWeR~ in forum OSR Help
    Replies: 1
    Last Post: 05-15-2007, 08:37 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
  •