Admin Listen Optimization
Hello,
can u optimize me this code? PHP Code:
|
Re: Admin Listen Optimization
Remove plugin_modules
Cache is_running Convert g_Voice_Status to an int and then use a ifelse Cache the id in your Players array instead of reindexing it Thread moved |
Re: Admin Listen Optimization
1. Ok
2. what to put instead is_running, because there is if and else? 3. how to convert and what is int? 4. Players[i] ---> Players[] ? |
Re: Admin Listen Optimization
2. Cache the value to a global variable in plugin_init and then just check the value whenever you need it
3. http://hg.alliedmods.net/amxmodx-cen...string.inc#l78 4. http://wiki.alliedmods.net/Optimizin...e-index_Arrays |
Re: Admin Listen Optimization
I can't make this things...
It is more difficult when somebody explain me how to make it. I will understand easier when you give me ready code (optimized)... |
Re: Admin Listen Optimization
Quote:
|
Re: Admin Listen Optimization
I read everything which Yami posted, but nothing...
|
Re: Admin Listen Optimization
The only way you will become a better scripter is if you start to figure this out on your own. I gave you enough information to get started, now go figure it out and then come back with your modified script.
|
Re: Admin Listen Optimization
In his first post (that was in request forum) he ask for someone to make the modification :)
|
Re: Admin Listen Optimization
Quote:
PHP Code:
|
| All times are GMT -4. The time now is 08:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.