Posts: 466
Threads: 72
Joined: Jan 2010
Reputation:
0
What are some ways you know of to prevent a laggy script?
I'm making a stunt server and want it to be as clean as possible in terms of lag.
Posts: 221
Threads: 23
Joined: Dec 2008
Reputation:
0
Overused string size, Godfather edits, many timers or anything else that could be taking some server resources...
Posts: 1,501
Threads: 19
Joined: Nov 2007
Reputation:
0
Take a good look at the post ****** made about code optimizations. It has everything you need to know (and then some) about having a very efficient script.
Posts: 2,929
Threads: 160
Joined: Feb 2009
Reputation:
0
for name; just use MAX_PLAYER_NAME.
Edit: also if you use a loop trough all players always check for connected players; otherwise it will do more then it's not needed.