Raised This Month: $ Target: $400
 0% 

Why didn't work ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Kiske
Veteran Member
Join Date: May 2009
Old 06-22-2012 , 14:56   Re: Why didn't work ?
Reply With Quote #4

Quote:
Originally Posted by Exolent[jNr] View Post
PHP Code:
        if(iButton IN_ATTACK)         iButton &= ~IN_ATTACK// this work
        
else if(iButton IN_ATTACK2)   iButton &= ~IN_ATTACK2// this work
        
else if(iButton IN_FORWARD)   iButton &= ~IN_FORWARD;
        else if(
iButton IN_BACK)      iButton &= ~IN_BACK;
        else if(
iButton IN_LEFT)      iButton &= ~IN_LEFT;
        else if(
iButton IN_RIGHT)     iButton &= ~IN_RIGHT;
        else if(
iButton IN_MOVELEFT)  iButton &= ~IN_MOVELEFT;
        else if(
iButton IN_MOVERIGHTiButton &= ~IN_MOVERIGHT;
        else if(
iButton IN_DUCK)      iButton &= ~IN_DUCK;
        else if(
iButton IN_JUMP)      iButton &= ~IN_JUMP;
        else if(
iButton IN_RUN)       iButton &= ~IN_RUN

PHP Code:
        static const BUTTONS_REMOVE IN_ATTACK|IN_ATTACK2|IN_FORWARD|IN_BACK|IN_LEFT|IN_RIGHT|IN_MOVELEFT|IN_MOVERIGHT|IN_DUCK|IN_JUMP|IN_RUN;
        
        
iButton &= ~BUTTONS_REMOVE
Thanks for the optimization, but it didn't work. It only block IN_ATTACK and IN ATTACK2, on the others don't.

Last edited by Kiske; 06-22-2012 at 14:58.
Kiske is offline
Send a message via Skype™ to Kiske
 



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 06:19.


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