Return to Project-GC

Welcome to Project-GC Q&A. Ask questions and get answers from other Project-GC users.

If you get a good answer, click the checkbox on the left to select it as the best answer.

Upvote answers or questions that have helped you.

If you don't get clear answers, edit your question to make it clearer.

LUA ERROR - MathAbs returns boolean

0 votes

So i made up 3 geocheckers, and a few people are getting this error; Not the majority.. whom it seems to work for, myself included.

They are getting this error:

[string "local args={...}..."]:231: bad argument #1 to 'MathAbs' (number expected, got boolean)

Not sure how it would return a boolean value rather then a number, unless there is a cache out there that has a weird set of coordinates.

Here is the Checker, Anyone have any insight?

asked Oct 20, 2014 in Miscellaneous by Juicepig (530 points)

1 Answer

+2 votes
Best answer
My guess is that it's non premium members where you try to calculate something on premium caches. The coordinates will then be false.

I suggest that you ignore all caches those with false in the coordinates to solve that.
answered Oct 20, 2014 by magma1447 (Admin) (218,480 points)
selected Oct 21, 2014 by Juicepig
that did the trick - Thank you very much!!