View Single Post
dalto
Veteran Member
Join Date: Jul 2007
Old 08-02-2007 , 09:33   Re: Advanced c4 timer
Reply With Quote #7

Quote:
Originally Posted by ^BuGs^ View Post
Some coding shortcuts and suggestions:
  1. MAX_CLIENTS can become MAXPLAYERS -- which you don't even use...
  2. For you "hook" check you can throw an error so the plugin unload it self (look up SetFailState)
  3. For loop on line 85 should have the needed { and }. Keeps everything clean. You already do this once, so keep the consistency.
  4. Credit sslice in the code.
Otherwise nice job.
1. I use it in the next release
2. Heh, that is the original code. I use SetFailState in my other plugins. I will change it here as well.
4. I do already at the top. I will add a couple more throughout.
dalto is offline