Raised This Month: $ Target: $400
 0% 

Detect brokeable things


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-26-2007 , 21:44   Re: Detect brokeable things
Reply With Quote #7

Okay Cheap_Suit, you got me here.

Why did you declare the global variables as static? It's redundant, it's like calling it "global global". The best thing to do would be to just declare them in plugin_init, like so:

Code:
//... public plugin_init() {     new PLUGIN_NAME[]     = "Remove Breakable Stuff & Hostages"     new PLUGIN_VERSION[]    = "1.0"     new PLUGIN_AUTHOR[]     = "Cheap_Suit"     register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)     register_cvar(PLUGIN_NAME, PLUGIN_VERSION, FCVAR_SPONLY|FCVAR_SERVER) //...


Also, why did you make the remove_entity_by_classname function a stock? All that does is slow the compiler down and make it look like crap. Just make it a private function. If you were trying to make your script look nice and confusing, you failed.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode