Dear All,
there is a nice little problem.
I am using code to find a zone, where actually the player is -> and only afterwards make it active.
It really works nice in the emulator but on the actual device there is no answer but a dump.
Maybe one of you Gurus has an idea:
Thanks in advance
Gotthard (jGda)
function Locator()
local d2,b2 = Wherigo.VectorToPoint(Player.ObjectLocation, ZA1.OriginalPoint)
local d = d2
local z = ZA1
local Target = ZHQ
local T2 = ZHQ
local T3 = ZHQ
d2,b2 = Wherigo.VectorToPoint(Player.ObjectLocation, ZA2.OriginalPoint)
-- print("Distance from zone = " .. d(units))
-- print("Distance2 from zone = " .. d2(units))
if d2 < d then
d = d2
z = ZA2
The following occurs and points to: if d2 < d then
RuntimeException: __lt not defined for operand