Do not use both includes at the same time (Si and SRL), only use SRL thats what you need other includes are outdated too.
Also your mining thing could be done like this:
SCAR Code:
Procedure mine;
Begin
if(Findcolor(x,y,rockcolor,5,5,515,340))then
begin
Mouse(x,y,1,1,true)
Wait(4000+random(1000))
end;
End;
And if you add RockColor in the consts
SCAR Code:
Const
RockColor=23555255;
You don't need same mining procedure for like 15 different ore types if only difference in those are the colors.
And really, only use SRL.
Check out SRL manual for different commands.