the flea
2012-03-15 09:35:50
Like the title said why does this give me a type mismatch. As you can probably tell I'm new to MSI and still getting to grips with it fully so if I have done anything wrong / unconventional please let me know.
I'm trying to use
this is pointed to at the autoobjects procedure of the script. however I am getting the error
it is pointing to MSI_PickFlax which is this:
any help big or little would be greatly appreciated thanks :)
I'm trying to use
function MSI_GotFlax: Boolean;
begin
Result := MSI_AutoInvFull(@MSI_PickFlax);
end; this is pointed to at the autoobjects procedure of the script. however I am getting the error
(255:45): Type mismatch at line 254Line 254 is the line with Result := MSI_AUTOINV… on it.
it is pointing to MSI_PickFlax which is this:
function MSI_PickFlax: boolean;
var
flax: TMSObject;
TmpTPA: TPointArray;
tmpPoint: Tpoint;
i,x,y: integer;
begin
if (not loggedIn) then
exit;
flax := MSI_GetObject(OBJ_FLAX);
MSI_FindObjectTPA(flax, TmpTPA);
for i:=0 to High(TmpTPA) do
begin
tmpPoint := tmpTPA[i];
MMouse(tmppoint.x,tmppoint.y,1,1);
if (isuptextmulticustom(['ick','lax'])) then
begin
GetMousePos(x,y);
Mouse(x, y, 0, 0, true);
FFlag(0);
wait(300+random(150));
Result := true;
exit;
end;
end;
end;any help big or little would be greatly appreciated thanks :)