Booleans outputs integers?
PHP Code:
http://i66.tinypic.com/63ygjl.png |
Re: Booleans outputs integers?
You're just retagging; you're not actually changing the value.
PHP Code:
|
Re: Booleans outputs integers?
Operator & doesn't return a boolean value.
|
Re: Booleans outputs integers?
Quote:
|
Re: Booleans outputs integers?
g_bAdmin[id] = bool:(get_user_flags(id) & ADMIN_LEVEL_G) ? true:false;
As klippy said operator & is not a comparison operator. |
Re: Booleans outputs integers?
Quote:
PHP Code:
|
Re: Booleans outputs integers?
Quote:
Quote:
EVERYTHING in this language is a 32-bit cell or an array of it. Integers, booleans, floats, strings and pointers, it's just all the same. Tags are there so the compiler can point out possible mistakes. |
Re: Booleans outputs integers?
Quote:
|
| All times are GMT -4. The time now is 12:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.