formatText: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| arma |= Game name | |||
|2.01|= Game version | |||
____________________________________________________________________________________________ | |||
| Creates a structured text by replacing %1, %2, etc. in format with plain or structured texts given as arguments. |= Description | |||
____________________________________________________________________________________________ | |||
''' | | '''formatText''' [format, arg1, arg2, ...] |= Syntax | ||
|p1= [format, arg1, arg2, ...] [[Array]] |= Parameter 1 | |||
' | | [[Structured Text]] |= Return value | ||
____________________________________________________________________________________________ | |||
|x1= <pre>txt = formatText' ["Image: %1", [[image]] "data\isniper.paa"]</pre> |= Example 1 | |||
____________________________________________________________________________________________ | |||
| |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Scripting Commands|FORMATTEXT]] | |||
[[Category:Scripting Commands OFP Elite |FORMATTEXT]] | |||
[[Category:Scripting Commands ArmA|FORMATTEXT]] |
Revision as of 00:16, 2 August 2006
Description
- Description:
- Creates a structured text by replacing %1, %2, etc. in format with plain or structured texts given as arguments.
- Groups:
- Uncategorised
Syntax
- Syntax:
- formatText [format, arg1, arg2, ...]
- Parameters:
- [format, arg1, arg2, ...] Array
- Return Value:
- Structured Text
Examples
- Example 1:
txt = formatText' ["Image: %1", [[image]] "data\isniper.paa"]
Additional Information
- See also:
- See also needed
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