View Single Post
09-19-17, 08:51 PM   #8
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Originally Posted by Kkthnx View Post
Could just check for it as well.

Lua Code:
  1. if x ~= 0 and y ~= 0 then
  2.     CoordText:SetFormattedText('%.0f , %.0f', x * 100, y * 100)
  3. else
  4.     CoordText:SetText('')
  5. end
This will throw an error if x and y are both nil.
  Reply With Quote