Checking if a bool is true for all Terrorists
How would I check if all T's have:
PHP Code:
|
Re: How to check if bool is true for all T's?
Use a loop
Or Use bit flags for your bools instead of an array. You can then compare the value of this var with a var holding bit flags for all players on terrorist team. |
Re: How to check if bool is true for all T's?
Quote:
|
Re: How to check if bool is true for all T's?
Quote:
PHP Code:
|
Re: How to check if bool is true for all T's?
You will have an issue when id=32.
PHP Code:
|
Re: Checking if a bool is true for all Terrorists
why not ?
PHP Code:
|
Re: Checking if a bool is true for all Terrorists
You can do this many ways but the above method is more efficient.
|
Re: Checking if a bool is true for all Terrorists
Quote:
Quote:
|
Re: Checking if a bool is true for all Terrorists
Alright, the one Brreaker posted is the one I was thinking about. But wrecked said there was a better way. But since he isn't on, I guess I have to use this one for now.
Now for the mod I'm working on, I want it to end the round when the bool is true for all T's and select two random CT's for the beginning of next round, how would I do this? |
Re: Checking if a bool is true for all Terrorists
Quote:
|
| All times are GMT -4. The time now is 07:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.