View Full Version : What kind of plugins can scar take?
I want the scar to send in a tpoint or tpa and take in a string.
Wanted
05-11-2010, 01:54 AM
afaik delphi and C++, delphi being the easiest ofc.
http://villavu.com/forum/showthread.php?t=41311
should suffice for anything you need.
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.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.