Results 1 to 4 of 4

Thread: Runtime error

  1. #1
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Runtime error

    I am making a poker card detector and i made this function, tell me if i need to post the whole script.

    SCAR Code:
    function card(blacknum, bxnum, bynum, slot: integer): boolean;
    begin
      result := false;
      if slot = 1 then
      begin
        flopx1 := 276;
        flopy1 := 181;
        flopx2 := 324;
        flopy2 := 247;
        if FindDTM(blacknum, bx3, by3, flopx1, flopy1, flopx2, flopy2) then // <= line 46
        begin
          fbs1 := true;
          result := true;
        end;
      end;
      if slot = 2 then
      begin
        flopx1 := 330;
        flopy1 := 182;
        flopx2 := 378;
        flopy2 := 246;
        if FindDTM(blacknum, bx3, by3, flopx1, flopy1, flopx2, flopy2) then
        begin
          fbs2 := true;
          result := true;
        end;
      end;
      if slot = 3 then
      begin
        flopx1 := 382;
        flopy1 := 181;
        flopx2 := 434;
        flopy2 := 246;
        if FindDTM(blacknum, bx3, by3, flopx1, flopy1, flopx2, flopy2) then
        begin
          fbs3 := true;
          result := true;
        end;
      end;
      if slot = 4 then
      begin
        flopx1 := 437;
        flopy1 := 181;
        flopx2 := 488;
        flopy2 := 248;
        if FindDTM(blacknum, bx3, by3, flopx1, flopy1, flopx2, flopy2) then
        begin
          fbs4 := true;
          result := true;
        end;
      end;
      if slot = 5 then
      begin
        flopx1 := 491;
        flopy1 := 182;
        flopx2 := 541;
        flopy2 := 247;
        if FindDTM(blacknum, bx3, by3, flopx1, flopy1, flopx2, flopy2) then
        begin
          fbs5 := true;
          result := true;
        end;
      end;
    end;

    the error : [Runtime Error] : Exception: Access violation at address 006D691C in module 'scar.exe'. Read of address 000001C4 in line 46 in script C:\Program Files (x86)\SCAR 3.15\Scripts\pokerstars cheat.scar
    I do visit every 2-6 months

  2. #2
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Only thing I can think of is that you didn't declare the DTM right. So, the DTM you input in the parameters is wrong.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  3. #3
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    nava2 thank u!!! that did it
    I do visit every 2-6 months

  4. #4
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    My pleasure.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

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
  •