Results 1 to 4 of 4

Thread: Help Bit Map error

  1. #1
    Join Date
    Mar 2013
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Question Help Bit Map error

    Error: Exception: The bitmap[0] does not exist at line 664
    program Herblore_V2;
    {$I SRL/SRL.simba}
    var
    x,y :integer;


    procedure DeclarePlayers;
    begin
    HowManyPlayers := 1;
    CurrentPlayer := Random(HowManyPlayers);
    NumberOfPlayers(HowManyPlayers);

    with Players[0] do
    begin
    Name := '';
    Pass := '';
    Member := True;
    Nick := '';
    Active := True;
    end;
    end;
    function Unf: boolean;
    begin;
    (FindObjCustom(x, y, ['annar otion'], [10269595,9941143,9744019,10072473], 7)); result:= true;
    begin
    GetMousePos(x, y)
    end
    end;
    function Ing: boolean;
    begin;
    (FindObjCustom(x, y, ['nape rass'], [6007566,5540363], 7)) result:= true
    begin
    GetMousePos(x, y)
    WriteLn('Found S')
    MoveMouse(x, y);
    wait(randomrange(700,1000));
    ClickMouse(x, y,(Mouse_Left));
    end;
    end;
    procedure Setup;
    var x, y: Integer;
    begin
    KeyDown(VK_UP);
    wait(randomrange(1500, 2500));
    KeyUp(VK_UP);
    wait(randomrange(300, 500));
    MakeCompass('N');
    end;
    procedure Antiban;
    begin
    end;
    Function banking: boolean;
    begin
    (FindObjCustom(x, y, ['ank ooth'], [2577766], 7)); result:= true;
    Begin
    MoveMouse (x, y);
    Wait(randomrange(400, 700));
    ChooseOption('se');
    Wait(randomrange(700,100));
    End
    end;



    begin
    DeclarePlayers;
    Setup;
    Unf;
    Ing;
    Banking;
    Antiban;
    ClearDebug;
    end.
    Last edited by benisbeast1; 07-15-2013 at 01:21 PM.

  2. #2
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Care to post the script here? Reminder to remove your username and password if you do.

    Forum account issues? Please send me a PM

  3. #3
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    call setupSRL(); before declare players

  4. #4
    Join Date
    Mar 2013
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Olly View Post
    call setupSRL(); before declare players
    Thank you very much

Thread Information

Users Browsing this Thread

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

Posting Permissions

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