Raised This Month: $ Target: $400
 0% 

Help with Optimization!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 07-30-2010 , 16:02   Re: Help with Optimization!
Reply With Quote #7

i check if the player have the BOOL in TRUE , he have the power when is attacking a enemy .EX

PHP Code:
[ ... Takedamage ... ]
        if(
g_thunder[attacker])
        {
                     
// do stuff
        
}
        if(
g_citizen[attacker])
        {
                     
// do stuff
        

when the player drop the weapon with power , the booleans are in false.

my problem is , i have more bools , and i hate have more bools in the plugin , therefore i'm searching a optimizate this.

if you doesn't understand , post please.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.

Last edited by lucas_7_94; 07-30-2010 at 16:27.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
 



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:13.


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