Results 1 to 3 of 3

Thread: What kind of plugins can scar take?

  1. #1
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default What kind of plugins can scar take?

    I want the scar to send in a tpoint or tpa and take in a string.
    Oh Hai Dar

  2. #2
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    afaik delphi and C++, delphi being the easiest ofc.

    http://villavu.com/forum/showthread.php?t=41311

    should suffice for anything you need.

    Code:
    library PluginTest
    
    uses
      FastShareMem,
      SysUtils,
      Windows,
      Math;
    
    {$R *.res}
    
    type
      TPointArray = array of TPoint;
    
    procedure DoWhatAgainExactly(P: TPoint; TPA: TPointArray; Whatlol: string); stdcall;
    begin
      //P.X P.Y
      //TPA[0].X
      //Whatlol
    end;
    
    
    function GetFunctionCount(): Integer; stdcall; export;
    begin
      Result := 1;
    end;
    
    function GetFunctionInfo(x: Integer; var ProcAddr: Pointer; var ProcDef: PChar): Integer; stdcall;
    begin
      case x of
        0:begin
            ProcAddr := DoWhatAgainExactly;
            StrPCopy(ProcDef, 'procedure DoWhatAgainExactly(P: TPoint; TPA: TPointArray; Whatlol: string);');
          end;
      else
        x := -1;
      end;
      Result := x;
    end;
    
    exports GetFunctionCount;
    exports GetFunctionInfo;
    
    end.

  3. #3
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    thanks man.
    Oh Hai Dar

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
  •