G.CompileString
From GMod Wiki
Revision as of 15:14, 17 July 2011 by TheFreeman193 (Talk | contribs)
Function | |
Syntax |
CompileString( String code, String identifier [, Boolean handleError] ) Where is this used? |
Description: | |
Compiles the string of Lua code as a function and returns it. If there is an error, it will print the error to the console and return nil. If handleError is set to false (it's set to true by default), it will return an error string on failure, instead of nil. | |
Returns: | Function or String or nil |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.CompileString]G.CompileString [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples