VastlySuperior
2012-07-25 07:24:28
Hi
I keep getting this error when doing a WithDrawItem from the bank using a dtm.
When I test the dtm string it pics the dtm correctly. What am I dong wrong.
Here is the code.
I know uptext is a issue at the moment but I bypassed it by using Wizzup`s suggestion made to me here and included this function at the top.
This allows me to get the correct uptext when the code is run, but the moment I try to use withdrawitem I receive the above mentioned error.
Any ideas or thoughts on what to do and why this is happening.
Thanks
I keep getting this error when doing a WithDrawItem from the bank using a dtm.
When I test the dtm string it pics the dtm correctly. What am I dong wrong.
Here is the code.
procedure WithDrawItems;
var
Temp:Integer;
Begin
MakeCompass('N');
SetAngle(SRL_ANGLE_HIGH);
DTM_SoftClay := DTMFromString('mlwAAAHicY2dgYGgF4gogrgPibiCeAsRdQFwDxCyMDAwcQMwPxYxA/Aso/heIQ+14gCQTDowbMOLBUAAA/WYGgQ==');
DTM_Clay := DTMFromString('mggAAAHicY2NgYGBnBBKMEJoXiIWAmAuIHYDYBYjdgdgZiG2A2AKIazJcgRqYsGDsgBEHhgAACIsDBQ==');
OpenbankFast('db');
Wait(500 + random(400));
// Withdraw Soft Clay From Bank
While (not(InvFull)) do
Begin
If WithDrawItem(DTM_SoftClay, 'dtm', 28, 'ft cl', []) then // WithDraw item From Bank
Begin
WriteLn('Success');
// Wait(1500 + random(400));
CloseBank;
FreeDTM(DTM_SoftClay);
FreeDTM(DTM_Clay);
End;
End;
End; I know uptext is a issue at the moment but I bypassed it by using Wizzup`s suggestion made to me here and included this function at the top.
function rs_GetUpText: String; {$IFDEF LAPE}override;{$ENDIF}
begin
result := rs_GetUpTextAtEx(7, 7, True);
WriteLn(result);
end; This allows me to get the correct uptext when the code is run, but the moment I try to use withdrawitem I receive the above mentioned error.
** Warning in WithdrawItem: Could not Find dtm in Bank. [Uptext: ft cl] **Any ideas or thoughts on what to do and why this is happening.
Thanks