G.MsgN

From GMod Wiki

Revision as of 16:26, 11 October 2010 by DarKSunrise (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax MsgN( String message )
Where is this used?
Description:
This function prints text in the console and automatically appends "\n" to the message.
Returns: nil
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.MsgN]G.MsgN [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionOutputs "Hello World" to console.
Used onNewerShared.png
Code
MsgN( "Hello World" )
OutputHello World


DescriptionOutputs the contents of the variable "MyString" to console.
Used onNewerShared.png
Code
local MyString = "pie"
 
MsgN( "This is my string: " .. MyString)
Outputpie


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox