I am using UnitId to get the ID for UnitFullName for the realm.
Everything is correct but im getting this error:
Message: [string "print(UnitId("player"))"]:1: attempt to call global 'UnitId' (a nil value)
Time: 04/14/14 22:33:41
Count: 1
Stack: [string "print(UnitId("player"))"]:1: in main chunk
[C]: in function `RunScript'
Interface\FrameXML\ChatFrame.lua:2036: in function `?'
Interface\FrameXML\ChatFrame.lua:4315: in function `ChatEdit_ParseText'
Interface\FrameXML\ChatFrame.lua:3969: in function `ChatEdit_SendText'
Interface\FrameXML\ChatFrame.lua:4008: in function `ChatEdit_OnEnterPressed'
[string "*:OnEnterPressed"]:1: in function <[string "*:OnEnterPressed"]:1>
Locals: (*temporary) = <function> defined @Interface\FrameXML\RestrictedInfrastructure.lua:116
(*temporary) = nil
(*temporary) = "player"
(*temporary) = "attempt to call global 'UnitId' (a nil value)"
|
I am running /run print(UnitId("player")) ingame to try to test it in my addon but its still giving that error.
Anyone know offhand why its doing that?