bdCore

299k Downloads

GMOTD script

Kewlie opened this issue ยท 1 comments

commented

5x bdCore\scripts\gmotd.lua:46: attempt to index field 'persistent' (a nil value)
bdCore\scripts\gmotd.lua:46: in function <bdCore\scripts\gmotd.lua:34>

Locals:
self = {
0 =
header = {
}
button = {
}
background = {
}
border = {
}
text = {
}
}
event = "GUILD_ROSTER_UPDATE"
message = nil
guild = "The Fallen"
msg = "Antorus 8:30pm every Wednesdsay and Sunday. Be there!"
(*temporary) = nil
(*temporary) = "Antorus 8:30pm every Wednesdsay and Sunday. Be there!"
(*temporary) = 53
(*temporary) = "Officer Alt"
(*temporary) = "attempt to index field 'persistent' (a nil value)"
c =

{
}
gmotd = {
0 =
header = {
}
button = {
}
background = {
}
border = {
}
text = {
}
}

commented

Looks like sometimes GUILD_ROSTER_UPDATE can fire before ADDON_LOADED and the variables weren't loaded yet. Wrapped this script in a "loaded_bdcore" trigger.