CompileString

From Garry's Mod
Revision as of 16:16, 26 February 2013 by Facepunch bot (Talk | contribs)
Jump to: navigation, search
 CompileString( )

Contents

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 will return an error string on failure, instead of nil.

Arguments

string code

The code to run.

Arguments

string identifier

The name to display next to the left side of the line number.

Arguments

boolean HandleError

If you(false) or the regular error handler(true) will handle the error.
Personal tools
Navigation