Optimize Plugin
Hey friends, I make a plugin. It has 3951 lines so I want to make it optimized for server.
In menus, what I should use? Code:
static data[6], name[32], access, callback, key; |
Re: Optimize Plugin
It doesn't matter.
|
Re: Optimize Plugin
So what should I do for optimizing plugin?
Example commands; PHP Code:
|
Re: Optimize Plugin
For starters, using get_players() to loop all players.
|
Re: Optimize Plugin
Quote:
|
Re: Optimize Plugin
Do they have all 32 players online 24/7? Probably not.
The only right way to loop all players is by using get_players(). |
Re: Optimize Plugin
Quote:
|
Re: Optimize Plugin
Quote:
|
Re: Optimize Plugin
My english is not good enough as you all. My bad.
I guess you understand my question, so there is no problem :D. "Is using get_players more optimized than using for(new Uid = 1 ; Uid <= 32 ; Uid++)" |
Re: Optimize Plugin
If it wasn't, would I be writing this in a thread that says "OPTIMIZE PLUGIN"?
|
All times are GMT -4. The time now is 17:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.