Category: Script
/ Strings
Since engine version: 5.1 OC
%[length][.precision]typeExcept for type all fields are optional. Type specifies the data type of the parameter to be expected. It can be 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. |
Log(Format("Hello, %s.You have %d Clonks!", GetPlayerName(0), GetCrewCount(0)));
Log(Format("'%3d'", 1));
Log(Format("'%3.2d'", 5));
Log(Format("'%.2s'", "test"));
Log(Format("'%03d'", 12));