Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Funzione Condiviso

string.FormatArgs

A better string.Format, replace <code>{num}</code> by the corresponding vararg in a string

Non ancora tradotto

Sintassi

Lua
string.FormatArgs(args)

Parametri

Nome Tipo Predefinito Descrizione
args any... The args

Valore restituito

  • string

Esempi

Replaces {1} and {2} with corresponding texts
local str = "Hello {2} I'm {1}",local new_str = str:FormatArgs("a noob", "world!")