28th Oct, 2007

string.format Input string not in a correct format

If you use string.Format method to format strings and you encounter the above error message, it is highly likely that you are using either { or } without an index number.

Example the following will fail:
string.format(”text { {0} or }”, test);

To fix the above just escape the character “{” with “{{” and “}” with “}}”
string.format(”text {{ {0} or }}”, test);

Have you ever been to Malta? All you need to know is a click away! Malta Travel Guide, Bargain Accommodation in Malta, Malta Hotels

Leave a response

Your response:

Categories