zbizu
Legendary OT User
Some complex systems get ruined when you do /reload (if you have addEvent, it may refer to an empty table)
You can avoid redefining a table while reloading by using
or
in code, instead of
I feel stupid for not knowing this before and I never saw anyone using it.
You can make your tables reload-proof this way.
It doesn't seem to work with "local", though.
You can avoid redefining a table while reloading by using
Code:
if not some_tbl then some_tbl = {} end -- a table exist so it's kept
Code:
some_tbl = some_tbl or {} -- shorter version of thing above
Code:
some_tbl = {} -- information dies when you do /reload
I feel stupid for not knowing this before and I never saw anyone using it.
You can make your tables reload-proof this way.
It doesn't seem to work with "local", though.