This method is a short-hand for "osrs.print(string.format(...))" It takes the exact same syntax as string.format, which
itself supports most of the format options of the C standard library sprintf. To use it, pass a parameter string with
variable placeholders like %s,%d,%f, and then variables which will be used to replace the string placeholders.
Please consult the C reference for full information on format string options.
Parameters
formatString: string
Contains a string with optional format parameters that will be replaced by the subsequent parameters.
...params: any[]
List of variable parameters that will be inserted into the format string.
Returns void
Example
osrs.printf("Hello %s, your class rank is %i, and your GPA is %.3f", "Gregory", 7, 3.7987) --prints: "Hello Gregory, your class rank is 7, and your GPA is 3.798"
This method is a short-hand for "osrs.print(string.format(...))" It takes the exact same syntax as string.format, which itself supports most of the format options of the C standard library sprintf. To use it, pass a parameter string with variable placeholders like %s,%d,%f, and then variables which will be used to replace the string placeholders. Please consult the C reference for full information on format string options.