[Multilingua] Own multi param function
Hello. I have function that handles displaying text messages to users.
Code:
Code:
[en]Quote:
Thanks in advance Regards |
Re: [Multilingua] Own multi param function
"%L", sLang
is impossible. It needs to be '"%L", id, "SET_LANG_SERVER", sLang' then. |
Re: [Multilingua] Own multi param function
You can pass directly %L in PlayerNotify(), vformat supports ML.
|
Re: [Multilingua] Own multi param function
Well it looks like I'm ultradumb. . .
Could you give me some example. I just cant imagine/understand both solutions. |
Re: [Multilingua] Own multi param function
When you use : PlayerNotify(id, "I suck or %s", "not" );
You can use PlayerNotify(id, "I suck or %L", id, "I_SUCK" ); |
Re: [Multilingua] Own multi param function
But it happens that I also have some variable inside language string.
Quote:
crazyeffect@ Please explain me why you have used those arguments. |
Re: [Multilingua] Own multi param function
PlayerNotify(id, "%L", id, "SET_LANG_SERVER", MyParam );
|
Re: [Multilingua] Own multi param function
Quote:
|
Re: [Multilingua] Own multi param function
Sorry I don't understand what you want. It's the usual way to format a string, whatever using format[ex]() or using a function + vformat.
|
Re: [Multilingua] Own multi param function
new sLang[3] = 'en'
SET_LANG_USER = Your language has been set to "%s" PlayerNotify(id, "SET_LANG_USER", sLang) And I really don't want to change that prototype no matter if I'm passing some arguments to language string or not. That means all "argument in lang string" implementation should be inside function. How to do that? |
| All times are GMT -4. The time now is 13:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.