tag mismatch
hi,
sorry but i dont know what i did wrong. PHP Code:
PHP Code:
|
Re: tag mismatch
You are using a bitwise operation between a boolean and an integer, use bitwise not:
Code:
~get_user_flags(id) & ADMIN_ADMINCode:
!get_user_flags(id) & ADMIN_ADMIN |
Re: tag mismatch
damn :-)))) :P
ty |
Re: tag mismatch
You still make beginners errors like
if( get_pcvar_num( blabla ) == 0 ) else if( get_pcvar_num( blabla ) == 1 ) First line implies that second line is equal to 1, so you don't need to check again the cvar. If the cvar can take more than 0/1, then cache the result in a var, or use a switch operator. |
Re: tag mismatch
Quote:
|
Re: tag mismatch
Code:
~get_user_flags(id) & ADMIN_ADMINCode:
!(get_user_flags(id) & ADMIN_ADMIN) |
Re: tag mismatch
Yes, it's the same.
|
| All times are GMT -4. The time now is 07:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.