string/format

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Also menu state)
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=format
 
|Parent=string
 
 
|Description=Formats the specified values into the string given.
 
|Description=Formats the specified values into the string given.
 
|Realm=Shared and Menu
 
|Realm=Shared and Menu
Line 19: Line 17:
 
{{Ret
 
{{Ret
 
|type=string
 
|type=string
|desc=formattedString
+
|desc=The formatted string
 
}}
 
}}

Revision as of 12:32, 24 September 2017

 string.format( )

Contents

Description

Formats the specified values into the string given.

Arguments

string format

The string to be formatted.

Follows this format: http://www.cplusplus.com/reference/cstdio/printf/

Arguments

vararg formatParameters

Values to be formatted into the string.

Returns

string

The formatted string
Personal tools
Navigation