Results 1 to 3 of 3

Thread: Error: Access violation

  1. #1
    Join Date
    Apr 2016
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default Error: Access violation

    Hello,so yeh.. i was scripting with Aerolib,and i got stuck with an error,i tried doing "flight" method to delete in reflection 3 lines,but i dont have reflection? and those 3 lines doesn't exist in Aerolib.
    well look at the error not at the script heh...
    Simba Code:
    program new;
    {$i AeroLib/AeroLib.Simba}
    var X, Y: Integer


    begin
     if(waitUptext('eleport', 100)) then
    begin
    GetMousePos(X, Y);
     MoveMouse(X, Y);
    fastClick(mouse_left);
    end;
    end;
    begin
    initAL();
    end.
    Last edited by eimas999; 03-04-2017 at 10:53 AM.

  2. #2
    Join Date
    Jan 2013
    Posts
    86
    Mentioned
    0 Post(s)
    Quoted
    25 Post(s)

    Default

    Code:
    program new;
    {$i AeroLib/AeroLib.Simba}
    var X, Y: Integer;
    
    procedure yolo();
    begin
      if(waitUptext('eleport', 100)) then
      begin
        GetMousePos(X, Y);
        MoveMouse(X, Y);
        fastClick(mouse_left);
      end;
    end;
    
    begin
    initAL();
    yolo();
    end.
    It's because you didnt have the clicking part set up as a procedure, you just had it like the main loop. Also you forgot a semicolon after integer at the top but idk if that matters.

  3. #3
    Join Date
    Apr 2016
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by deejaay View Post
    Code:
    program new;
    {$i AeroLib/AeroLib.Simba}
    var X, Y: Integer;
    
    procedure yolo();
    begin
      if(waitUptext('eleport', 100)) then
      begin
        GetMousePos(X, Y);
        MoveMouse(X, Y);
        fastClick(mouse_left);
      end;
    end;
    
    begin
    initAL();
    yolo();
    end.
    It's because you didnt have the clicking part set up as a procedure, you just had it like the main loop. Also you forgot a semicolon after integer at the top but idk if that matters.
    omg thank you sooooo 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
  •