View Single Post
08-27-08, 03:17 PM   #1
Scale
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jul 2005
Posts: 28
UnitName("unit") error

when leaving/joining raids this line sometimes gives me the error:

Usage: UnitName("unit")

local tarname = UnitName(tarframe:GetAttribute("unit"))

Now i want to create an If so it doesn't error but i don't have a clue what to check so it bypasses this line if i guess the GetAttribute("unit") is empty.
  Reply With Quote