Hello. I have function that handles displaying text messages to users.
Code:
public PlayerNotify(id, sLang[], any:...)
{
new sText[70]
new sLangText[70]
format(sLangText, charsmax(sLangText), "%L", sLang)
vformat(sText, charsmax(sText), sLangText, 3)
client_print(id, print_chat, "%s %s", PLUGIN_TAG, sText)
}
I want it to be able to send multilanguage informations with some custom data inside them. For instance;
Code:
[en]
SET_LANG_SERVER = The server language has been set to "%s"
It looks ( at least for me ) that everything is fine with that function implementation but It shows me an error.
Quote:
String formatted incorrectly - parameter 4 (total 4)
[AMXX] Displaying debug trace (plugin "climb.amxx")
[AMXX] Run time error 25: parameter error
|
with line number pointing on "format(sLangText, charsmax(sLangText), "%L", sLang)"
Thanks in advance
Regards