![]() The code a = 1 - create a global variable - change current environment to a new empty table setfenv(1, ) print(a) results in stdin:5: attempt to call global `print' (a nil value) (You must run that code in a single chunk. ![]() You'll have to post a minimal example code thatr shows the problem. Pastebin is a website where you can store text online for a set period of time. Module script attempt to call a nil value Date: Mon, 09:02:32 -0300 > So, I guess my question is that is there a limit to the number of globals one can have in a lua script or in general the lua global environment? LUA error: attempt to call global 'function_name' (a nil value) LUA error: attempt to call global 'function_name' (a nil value) By rustam, Decemin FSUIPC Support Pete Dowson Modules.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |