Warning: file_put_contents(/ff_89336906fd793f6df16102430e31e0307945bf00ad4dba9d.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
format - OFPEC Scripting Command Reference | OFPEC The Editing Center

format format

Operand types

format: Array

Type of returned value

Description

First argument of array is the format string.
Format string may contain references to following arguments in form %1, %2, etc.
Each %x is replaced by corresponding argument.
%x may appear in the format string in any order.

Used In

OFP/ArmA

Example

format ["%1 - %2 - %1", 1,"text"]

Result is "1 - text - 1"

hint format ["%1", loon1 distance Tank1]
titletext [format ["Good morning, Captain %1.", name player], "plain", 1]

Advertisement