Raised This Month: $ Target: $400
 0% 

Some [Question to ask] !!!!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-25-2009 , 22:53   Re: Some [Question to ask] !!!!
Reply With Quote #5

No, it's not a function or operator. Bitsum = A sum of bits.

PHP Code:
new what_ever_you_want_to_name_this_variable  

// Set whether or not they are alive:  

if( is_user_alive(id) )  
{  
    
what_ever_you_want_to_name_this_variable |= (1<<id)  
}  
else  
{  
    
what_ever_you_want_to_name_this_variable &=  ~(1<<id)  
}  

// Then use the following to check and see if they are alive:  

if (what_ever_you_want_to_name_this_variable & (1<<id))   
{  
    
// User is alive.  

__________________

Last edited by fysiks; 06-25-2009 at 23:30.
fysiks 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 15:31.


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