Optimize Code
someone optimize code for me
PHP Code:
|
Re: Optimize Code
Untested. Could probably be done more efficient using Ham_Killed etc.
PHP Code:
|
Re: Optimize Code
bdw why TASKID is used ?
|
Re: Optimize Code
|
Re: Optimize Code
so if i remove taskid it wont affect any thing and work fine .
|
Re: Optimize Code
Quote:
Also, is the plugin doing the job or is it not? |
Re: Optimize Code
Wanted to make it better but then I remembered you could just add this line in your addons/amxmodx/configs/stats.ini file and have the same functionality so I dropped it:
PHP Code:
PHP Code:
|
Re: Optimize Code
Quote:
This is enough(basically what op had before): PHP Code:
|
Re: Optimize Code
Well this was my original code, so i guess i fucked it up even more than trying to optimize it lol
PHP Code:
|
Re: Optimize Code
That's much better.
Just a few more things: 1.Remove !is_user_alive(iPlayers[i]) and add flag "b" to get_players instead. 2.I don't think you have to check if iSpecPlayer is alive. 3. iMaxRank = get_statsnum(); can be moved outside the loop, no need to retireve the value more than once. |
| All times are GMT -4. The time now is 02:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.