Log in

View Full Version : FindObject help



uber jesus
01-15-2007, 01:46 PM
When I try to compile, I get this...

Failed when compiling
Line 14: [Error] (18055:50): Unknown identifier 'center' in script C:\Users\Me\Desktop\RS\Powa Chopa.scar

I'm using the FindObject function, this is what I've typed in...

FindObject(x, y, 'Chop down ', treecolor, 10, center)

What do I put instead of "center"?

Starblaster100
01-15-2007, 02:14 PM
function FindObject(var x, y: Integer; ObjectText: String; ObjectColor, ObjectTolerance: Integer; Center: Boolean): Boolean;

Center is a Boolean -Meaning True / False Value.

Replace Center with
True if you want to Search from the Center
False if you want to Search from the Corner

uber jesus
01-15-2007, 08:57 PM
great, thanks