DeSnob
2010-06-06 20:46:00
I know the following error has to do with reflection, but since I'm not familiar to it I can't figure out what to do! In my procedure,
function MineRocks(rock:string): boolean;
var
P: TPoint;
Obj: TRSObject;
begin
case lowercase(rock) of
'tin': Obj := GetObjectsByID([11935, 11933, 11553, 11934, 11552], 0, 0);
'copper': Obj := GetObjectsByID([11938, 11936, 11937], 0, 0);
end;
P := TileToMS(Obj.Tile, 10);
case random(100) of
0..50: Mouse(p.x, p.y, 0, 0, True);
51..99: Mouse(p.x, p.y, 0, 0, True);
end;
end; [Error] (90:74): Type mismatch at line 89
Compiling failed.
I'm seriously stuck here. I've checked everywhere in the includes! :(