admin
PHP Code:
|
Re: admin
Well, if you tell us what should it do. I can't see anything wrong with the check, probably you don't know it's right purpose. This chekcs if the player is alive OR if his team isn't CT OR if he has ban access. Maybe you want all these conditions to be true at the same time. If so, you will have to replace || operators with &&. Simply explained in this case, || means that it is enough one of the conditions to be true, and && means that they all have to be true, so the function will be executed.
|
Re: admin
Here is how your if will think:
1. Let's translate it: PHP Code:
2. Let's see what we will receive: think that first and the second condition are false and the last one true ( or whatever you want ). PHP Code:
If we cange it to && ( mean AND ): PHP Code:
Now, think that just one is false. We will receive : PHP Code:
|
| All times are GMT -4. The time now is 13:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.