GetActionInfo doesnt work properly?
Hi,
if i do in my addon: Lua Code:
the print says: Quote:
But when i do: Lua Code:
the print says: Quote:
I need the number of the macro.. Thank in advance! |
Looks like the function has multiple return values. In the first code block you were printing everything that the function returns, on the second one you are grabbing the first value ( type ) and not the second value (id)
actionType, id, subType = GetActionInfo(slot) https://warcraft.wiki.gg/wiki/API_GetActionInfo |
Probably more like:
Lua Code:
|
Once again @Xrystal and @Fizzlemizz thank you for your answers! You got me on the right track :)
|
All times are GMT -6. The time now is 10:54 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI