Difference between revisions of "PrintToConsole"
Jump to navigation
Jump to search
Clarified, added links
imported>Hammil |
imported>Odessa (Clarified, added links) |
||
Line 2: | Line 2: | ||
|CSWikiPage = PrintToConsole | |CSWikiPage = PrintToConsole | ||
|origin = FOSE1 | |origin = FOSE1 | ||
|summary = | |summary = Prints a string to console. Optionally with up to 20 [[String Formatting|format specifiers]]. | ||
|name = PrintToConsole | |name = PrintToConsole | ||
|alias = | |alias = PrintC | ||
|returnType = void | |returnType = void | ||
|arguments = | |arguments = | ||
{{FunctionArgument | {{FunctionArgument | ||
|Name = | |Name = Message | ||
|Type = string | |Type = string | ||
}}{{FunctionArgument | }}{{FunctionArgument | ||
|Name = | |Name = Formatting | ||
|Type = | |Type = | ||
|Optional = optional | |Optional = optional | ||
}} | }} | ||
}} | }} | ||
==Example== | |||
<pre> | |||
PrintC "This message will appear in the game console" | |||
</pre> | |||
With formatting: | |||
<pre> | |||
int iVal | |||
set iVal to 42 | |||
PrintC "The value of iVal is: %g" iVal | |||
</pre> | |||
==See Also== | |||
*[[String Formatting]] | |||
*[[DebugPrint]] | |||
*[[Print]] | |||
*[[MessageEx]] | |||
*[[ToString]] | |||
[[Category:Functions_(FOSE)]] | [[Category:Functions_(FOSE)]] | ||
[[Category:Debugging]] |