Category: Script
/ Strings
Since engine version: 4.6.5.0 CP
%[length][.precision]type
Except for type all fields are optional. Type specifies the data type of the parameter to be expected. It is one of the following values: Type | Meaning |
---|---|
d | Whole number (int) |
x | Whole number (int), hexadecimal representation (0123456789abcdef) |
X | Whole number (int), hexadecimal representation (0123456789ABCDEF) |
i | id (with ids, length and precision parameters do not apply) |
s | String |
v | Any. Primarily useful for debugging. |
Message(Format("Hallo, %s. Du hast %d Clonks!", GetPlayerName(0), GetCrewCount(0)));
Log(Format("'%3d'", 1));
Log(Format("'%3.2d'", 5));
Log(Format("'%.2s'", "test"));
Log(Format("'%03d'", 12));