Can It be possible to edit namespace
example.toc
Code:
## Title: example Lua Code:
exp2.lua Lua Code:
exp2.lua can access and edit the value that was already defined in exp1.lua. but exp2.lua can't define a new variable into the table 'ns' Other addons can do this like It was nothing. so I don't know what are the problems with my codes... |
Without your actual not working code it's difficult to guess.
Perhaps the value you try to store is not yet available at the time you try to store it. Delay it until player enters the world event. |
You need to create the "player" entry as a table
Lua Code:
Lua Code:
You can also get rid of the [""] Lua Code:
Then again, I could be about to learn something new. |
Quote:
|
All times are GMT -6. The time now is 08:45 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI