SRL Archive - Help

Simba Warning Error Help!


bambe

2012-06-26 09:23:24

Hi ive been playing around trying to make a few scripts and everything was going fine but now i seem to be getting the error and don't know how to fix it

Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.

its just a constant error that keeps coming up while looking for a colour.
any ideas?

thanks

Main

2012-06-26 09:30:37

Try changing your boundary for findcolor should be

FindColorTolerance( X, Y, Col, MSX1, MSY1, MSX2-1, MSY2-1, Tol);