View Single Post
04-12-13, 01:46 PM   #9
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,327
Originally Posted by Resike View Post
I would be instrested with this force only the selected value. Is this some kinda new bug, i think it only returned the actually selected parameter.
It's not a bug, it's even documented as doing such. See Select() under Official Lua 5.1 Manual §5.1.



Originally Posted by Resike View Post
Well obv. i want to use it on a different stuff like "print(select(2, GetWorldStateUIInfo(3)))" prints every parameter from the second one.
As mentioned earlier, encase the Select() call in parenthesis to only use the first return.
(The post by Clamsoda put them around the wrong function.)
Code:
print((select(2, GetWorldStateUIInfo(3))))
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 04-12-13 at 01:48 PM.
  Reply With Quote