Atton Posted March 27, 2014 Share Posted March 27, 2014 I would recommending making a function for the lua api that will run a string. For example if you where to read from a text file executeString would run any functions or stuff like that. executeString Link to comment
Atton Posted March 29, 2014 Author Share Posted March 29, 2014 You mean loadstring?How can you even make use of it. Link to comment
WhoAmI Posted March 29, 2014 Share Posted March 29, 2014 local t = "function somename () end" loadstring ( t ) Link to comment
Atton Posted April 5, 2014 Author Share Posted April 5, 2014 local t = "function somename () end" loadstring ( t ) Thanks. Link to comment
Karuzo Posted April 5, 2014 Share Posted April 5, 2014 Uhm hey, i'm pretty new to this loadstring func and wanted to ask you what this function actually does. Is it like a function but written in one line ? And what is it good for ? local t = "function somename () end" loadstring ( t ) Link to comment
WhoAmI Posted April 5, 2014 Share Posted April 5, 2014 No, it isn't one line thing. It is good for some generators, where you are inserting code to the memo. For example guieditor uses it. Link to comment
Atton Posted May 13, 2014 Author Share Posted May 13, 2014 No, it isn't one line thing. It is good for some generators, where you are inserting code to the memo. For example guieditor uses it. I built a copy of run code off and it and made a script protection system using it. By the way thanks. Link to comment
Recommended Posts