You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to know how to correctly manage indexes of array/list instanced from CS ?
In CS : array/list indexes start at 0.
In Lua : table indexes start at 1.
If I have a function that return an CS array in lua, this is a mess to iterate over. And in my code, I can use lua table and CS array for equivalent usage. That is a big mess.
What do you recommand for that ? Convert manually array/list in lua table (in CS or lua env ?
What the best practices for that ?
Thank you
The text was updated successfully, but these errors were encountered:
Hi.
I would like to know how to correctly manage indexes of array/list instanced from CS ?
In CS : array/list indexes start at 0.
In Lua : table indexes start at 1.
If I have a function that return an CS array in lua, this is a mess to iterate over. And in my code, I can use lua table and CS array for equivalent usage. That is a big mess.
What do you recommand for that ? Convert manually array/list in lua table (in CS or lua env ?
What the best practices for that ?
Thank you
The text was updated successfully, but these errors were encountered: