Hello, i'm trying to pass a value from DBPro into a lua function, but I cant do it.
I
CAN pass a value into a function by using lua set function, but because there are no global variables in lua, I can't pass this value into an already running function. (The following was taken fromn the manual, and refers to C as the language, can this be converted to DBPro?)
Quote: "To access and change the value of global variables, you can use regular table operations over an environment table. For instance, to access the value of a global variable, do
lua_pushstring(L, varname);
lua_gettable(L, LUA_GLOBALSINDEX);"
Is there any way I can either create/access a global variable, or pass a value from one function into an already running function?
(Basically what i'm doing is calling a function, passing a value via SendMessageS() to DBPro asking for a blank object number and having that value passed into another function. I can't change the value in the original function using Lua Set Int either, i've tried!)
Your signature has been erased by a mod because it is way too awesome!