First, it's
lua not lau.
I'm not quit sure what you are doing (or want to do), but when quoting code snippets, it helps to use the code tags to keep spacing. They ar under the little # icon when you write/edit a post.
Code:
function Simple_Coords_OnUpdate(elapsed)
Simple_Coords_SecondsSinceUpdate = Simple_Coords_SecondsSinceUpdate + elapsed;
if (Simple_Coords_SecondsSinceUpdate > HEARTBEAT_INTERVAL) then
local x, y = GetPlayerMapPosition("player");
if x == 0 then
Simple_CoordsText:SetText("---");
else
Simple_CoordsText:SetText(format( "%.1f, %.1f", x * 100, y * 100));
Astrolabe:UpdateMinimapIconPositions();
end
Simple_Coords_SecondsSinceUpdate=0;
end -- if
end
The code you quote above should work. Being bold and judging by your spelling here, I'd say: double-check everything, spelling, case (upper/lower) etc.
Of course, I can be wrong and you do code more neat that you write forum posts.