Raised This Month: $ Target: $400
 0% 

Sum of Bits (Not Equal)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Drak
Veteran Member
Join Date: Jul 2005
Old 03-08-2009 , 00:00   Sum of Bits (Not Equal)
Reply With Quote #1

KSO. This is what I have. But how do I check if the condition is NOT true?
Code:
if(g_UserPhone[id][EXTRA] & EX_CUSTOM_RINGTONES) // true

This:
Code:
if(g_UserPhone[id][EXTRA] & ~EX_CUSTOM_RINGTONES) // false
Does not work.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
jim_yang
Veteran Member
Join Date: Aug 2006
Old 03-08-2009 , 00:15   Re: Sum of Bits (Not Equal)
Reply With Quote #2

if(!(g_UserPhone[id][EXTRA] & EX_CUSTOM_RINGTONES)) ?
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 03-08-2009 , 00:25   Re: Sum of Bits (Not Equal)
Reply With Quote #3

That's it. Thank you.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
Reply



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 08:50.


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