Closed luttje closed 11 months ago
The issue doesn't seem to be that the command needs to be run. My code in #16 didn't take into account that some deprecation warnings would be multi-lined resulting in. https://wiki.facepunch.com/gmod/table.GetFirstKey creating this deprecation warning:
---[SHARED AND MENU] Returns the first key found in the given table
---
---[(View on wiki)](https://wiki.facepunch.com/gmod/table.GetFirstKey)
---@param tab table Table to retrieve key from
---@return any #Key
---@deprecated Instead, expect the first key to be 1.
Non-numerically indexed tables are not ordered and do not have a first key.
function table.GetFirstKey(tab) end
Oh thanks so much for catching onto this.
I'd love to help you out, but I'm not going to be able to for another two weeks or so. If you make PR's I'll merge them ASAP.
Thanks for your continued contributions
Thanks @aske02 for fixing this in #20
Much appreciated 👍👍
Originally posted by @luttje in https://github.com/luttje/glua-api-snippets/issues/16#issuecomment-1656987585