Originally Posted by Resike
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
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))))