Raised This Month: $ Target: $400
 0% 

Help with Optimization!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 07-30-2010 , 08:58   Help with Optimization!
Reply With Quote #1

In my plugin , i remade 2 bools , this are called in Takedamage , but i hate make this in the takedamage

PHP Code:
new boolmy_bool[33], boolmy_bool2[33]


/////
if( my_bool[id] )
          
// Something

if( my_bool2[id] )
          
// Something 2

if( ... ) //more bools

if( ... ) // more bools. 
Its possible optimize the code ? with switch or anything ?
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.

Last edited by lucas_7_94; 07-30-2010 at 11:31.
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