Raised This Month: $ Target: $400
 0% 

Code Style


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 10-16-2010 , 11:58   Code Style
Reply With Quote #1

Hello Alliedmods,

My Question: What is more efficient?

Method 1:

PHP Code:
if(headshot)
{
        
client_print0print_chat"Omg. HeadShot.")
        return 
PLUGIN_HANDLED
}
    
        
client_print0print_chat"lol... Normal kill"
Method 2:

PHP Code:
if(headshot)
{
        
client_print0print_chat"Omg. HeadShot.")
}
else
{
        
client_print0print_chat"lol... Normal kill")

__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
 



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 10:22.


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