loadstring is not detecting global variables in lua. Try this: Code: Select all function Initialize() i=0 loadstring("print(i+1)")() end.
確定! 回上一頁