Raised This Month: $ Target: $400
 0% 

[Multilingua] Own multi param function


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
orglee
Member
Join Date: Dec 2005
Old 06-05-2009 , 12:57   [Multilingua] Own multi param function
Reply With Quote #1

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
orglee is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode