Results 1 to 8 of 8

Thread: Runtime Error

  1. #1
    Join Date
    Mar 2006
    Posts
    201
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Runtime Error

    [Runtime Error] : Exception: Access violation at address 006549BC in module 'scar.exe'. Read of address 00000000 in line 43 in script C:\Program Files\SCAR 2.03\includes\srl\srl\core\Bank.scar

    function BankScreen : Boolean;
    begin
    Result := IsTextAtEx(185, 34, 'The Bank of', 30, UpChars, True, False, 0, 0, -1);
    end;

    "result := IsTextAtEx" is line 43.

    possibly my fault, i have no idea

    my script -

    procedure Withdrawfrombank;
    begin
    OpenBank2(pin);
    if Bankscreen then
    if TotalDone < emptyvials-28 then
    begin
    withdraw(1,1,0);
    end
    (not the whole procedure, just the relevant part)

    kk its probably my double "if" statements lol, if it is just tell me and let me fix them. i'm doing this for practice anyway

  2. #2
    Join Date
    Feb 2006
    Posts
    1,022
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You have have 1 if statment leading to another

    if(BankScreen)and
    (TotalDone < emptyvials-28)then

  3. #3
    Join Date
    Feb 2006
    Posts
    406
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    did you load the font or do setupsrl?

  4. #4
    Join Date
    Mar 2006
    Posts
    201
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    um...neither. its not necessariliy a SRL script. this is what i was trying to make with that procedure. If it goes to bankscreen, continue. else logout

    then if the bankscreen is true, i want it to continue and check the emptyvials and if theres more than 28 "withdraw all" and if theres less than 28 withdraw "vialstodo" -1

    and why would that give me such a horendous error. access violation and stuff

  5. #5
    Join Date
    Feb 2006
    Location
    California-Foster City
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    you must put setupsrl, if its being included, and it looks like it is.. :/
    The Welcoming Party
    Don't be a Fakawi! Get 25 hours of sleep a day!

  6. #6
    Join Date
    Mar 2006
    Posts
    201
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    some functions are....i thought that would only be if you wanted your army of noobs, (sigh) thank you for the info

  7. #7
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    it you look at the code, you see what it does:

    What SetupSRL basically does is:

    - Reset some frequenly used Colors to zero to avoid the "hint variable not used"
    - Disguise Scar
    - Loads Fonts into memory.
    - Marks some timers
    - Load some Global Bitmaps (Bitmaps of common Randoms: see also Globals.scar)
    - Some misc stuff.

    Thats all.

    It doesnt do any MultiPlayer stuff
    The Array is declared Dynamical through NumberOfPlayers(Number: integer);

    Code:
    procedure SetupSRL;
    begin
      RoadColor  := 0;
      WaterColor := 0;
      BankColor  := 0;
      Banks      := 0;
      Frogs      := 0;
      kLastChoice  := -1;
    
    
      DisguiseScar(MaskName);
    
      UpChars    := LoadChars2(AppPath + 'CharsRS22\');
      SmallChars := LoadChars2(AppPath + 'CharsChat2\');
      StatChars  := LoadChars2(AppPath + 'CharsChat2\fontsmall\');
      NpcChars   := LoadChars2(AppPath + 'includes\SRL\CharsNPC\');
      MarkTime(LogOutMark);
      MarkTime(RandomChatMark);
      MarkTime(RotateMark);
      MarkTime(KillScriptMark);
      MarkTime(LeaveScreenMark);
      MarkTime(HoverMark);
      ST:=GetSystemTime;
      SetMouseMode(false);
      BenMouse:=True;
      LoadCoSineArrays;
      LoadSRLBitMaps;
    
    
      ReinCarnate:=False;
      SymbolAccuracy:= 0.8;
      SetupSRLAutoResponder;
      LoadNPCArray;
    end;
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  8. #8
    Join Date
    Mar 2006
    Posts
    201
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    o lol that would have helped, i did the bank and road by hand, meh.

    Thank you for helping me =)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [Runtime Error] : Exception: buffer error
    By GasMan in forum OSR Help
    Replies: 11
    Last Post: 05-13-2007, 02:07 PM
  2. Runtime Error
    By CamHart in forum OSR Help
    Replies: 2
    Last Post: 11-23-2006, 05:21 AM
  3. Runtime error
    By sk8ter in forum OSR Help
    Replies: 3
    Last Post: 10-30-2006, 01:55 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
  •