Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-27-12, 07:25 PM   #1
Nervus86
A Defias Bandit
Join Date: Mar 2012
Posts: 3
API CalendarGetDayEvent

Hello everyone,

This is my first addon which I am developing and I have a problem
CalendarGetDayEvent returns

name - Name of the character (string)
level - The character's current level (number)
className - Localized name of the character's class (string)
classFileName - Non-localized token representing what the character's class (string)
inviteStatus - inviteStatus - The character's status Regarding the event (number)


but when I try to get the value inviteStatus I always get a nil value ...

example
.....
CalendarOpenEvent(0, today[3], i) ;
num = CalendarEventGetNumInvites()
for e=1,num,1 do
name, level, className, aSML = CalendarEventGetInvite (e);
players [e] = {name = name, level = level, className = className, inviteStatus = inviteStatus, aSML = aSML };
for k, v in pairs (players) do
output = output .. v.name .. v.level .. v.className .. v.inviteStatus .. "\ n"
end
end


all other value work, but I inviteStatus returns error ...
can you tell me something?

thanks Nervus

Last edited by Nervus86 : 03-27-12 at 07:30 PM.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » API CalendarGetDayEvent


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off