Raised This Month: $51 Target: $400
 12% 

Function checks vs variables


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 07-22-2011 , 09:30   Function checks vs variables
Reply With Quote #1

I've seen in many larges mods / plugins, where the person who wrote the code used a bool variable to determine things such as if the user is alive or connected. Is it really that much more efficient for me to use my own variable ... if( g_bIsAlive[ id ] ) as oppose to if( is_user_alive( id ) ) ??

Thanks.
hornet is offline
 



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 01:59.


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