Is it possible to optimize this?
hi, i have tried to write small and simple plugin by myself, which should make welcome hud massege. I think there are some useless code. Is it possible to make it better?
PHP Code:
|
Re: Is it possible to optimize this?
Code:
|
Re: Is it possible to optimize this?
You forget ,id.
|
Re: Is it possible to optimize this?
Quote:
|
Re: Is it possible to optimize this?
Thanks!
I want to set coordinates from dictionary. But I cant make float number from string. message appears in the upper left corner. coordinates equal zero. PHP Code:
How to edit? |
Re: Is it possible to optimize this?
Why not just use cvars, it's easier for everybody.
|
Re: Is it possible to optimize this?
Ye maybe, but i want to know how to make it work. Its interesting.
|
Re: Is it possible to optimize this?
Using dictionary ? Not really possible, there are more keys for each language and the languages are parsed in-game to each client.
You *could* read the dicionary file separately, or another file actually, using the plugin and parsing the value... but that'll be just too much stuff when you can just use a cvar :} |
Re: Is it possible to optimize this?
It's possible using LookupLangKey() but I don't understand well the purpose using ML system for that. Such functionnality has to be used for multilingual messages and nothing else. If you want something customizable easily, use cvars.
|
| All times are GMT -4. The time now is 19:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.