Raised This Month: $ Target: $400
 0% 

Help with Optimization!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 07-30-2010 , 14:28   Re: Help with Optimization!
Reply With Quote #2

Quote:
Originally Posted by lucas_7_94 View Post
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 ?
I cant understand what u want....?
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
 



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