When I run my script, It is always giving me this error.. I looked for all the ways i know of to fix this.. but still the error remains.
Here it is
SCAR Code:
procedure FindKnife;
begin
LoadMyDTMs;
if(FindDTM(KnifeDTM, x, y, mix1, miy1, mix2, miy2))then
writeln('Found Knife in Inventory.');
KnifeInv:=True
if(not(FindDTM(KnifeDTM, x, y, mix1, miy1, mix2, miy2)))then
Writeln('No Knife, Dont worry... Banking for one');
KnifeInv:=False
Exit;
FreeMyDTMs;
end;
The Error:
Code:
Failed when compiling
Line 160: [Error] (17039:1): Type mismatch in script C:\SCAR 3.20\Scripts\Cutter.Scar
Line 160 is this line
SCAR Code:
if(not(FindDTM(KnifeDTM, x, y, mix1, miy1, mix2, miy2)))then
Any, and all help would be appreciated. Going to sleep now. Talk to you all in the morning.
Thanks to everyone who helps!