BIS fnc logFormat: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) m (Created page with "<syntaxhighlight lang=javascript>/* Author: Karel Moricky Description: Display debug message Parameter(s): _this select 0: STRING - Formatted message or first param _this...") |
m (sa) |
||
(33 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | |||
|game1= arma3 | |||
|version1= 1.00 | |||
|gr1= Diagnostic | |||
|descr= Display debug message. | |||
{{Feature|informative|{{hl|[[Description.ext#allowFunctionsLog|allowFunctionsLog]]}} has to be set to '''1''' in [[Description.ext]] for this function to have any effect.}} | |||
|s1= [text, parameters] call [[BIS_fnc_logFormat]] | |||
|p1= '''text''': [[String]] - formatted message or first param | |||
|p2= '''parameters''': [[Anything]] - (Optional) additional parameters | |||
|r1= [[Boolean]] - [[true]] when done | |||
|x1= <sqf>["My logged name: %1, My position: %2", name player, getPos player] call BIS_fnc_logFormat; | |||
// RPT output: | |||
// 12:34:56 "BIS_fnc_log: [BIS_fnc_debugConsoleExec] My logged name: Miller, My position: [4866.73,21947.9,0.00143433]"</sqf> | |||
|seealso= [[BIS_fnc_error]] [[BIS_fnc_logFormatServer]] [[BIS_fnc_errorMsg]] [[BIS_fnc_log]] | |||
}} | |||
} | |||
Latest revision as of 22:46, 30 December 2023
Description
- Description:
- Display debug message.
- Execution:
- call
- Groups:
- Diagnostic
Syntax
- Syntax:
- [text, parameters] call BIS_fnc_logFormat
- Parameters:
- text: String - formatted message or first param
- parameters: Anything - (Optional) additional parameters
- Return Value:
- Boolean - true when done
Examples
- Example 1:
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note