check from X to X help
I read the amxx guide thing and whatever I cant find it.
How do I check a users hp from like... 120 to 160... cause im unsure if this would work Code:
|
Code:
|
Thanks so much! Well, back to coding this damn 900 lined thing.
|
Well sorry to be a Troll but one small thing wrong with your plugin , and a optional change. :
Code:
|
a) Wow, I didn't know Small had segmented OR statements, if only they had this for PHP.
b) He wants to check if it is more than 120 and smaller than 160. I'm assuming yours would check if it is more than 120 or 160, but I've never used an if like that, so I can't say for sure. |
Avalanche , don't go mad on me , I made a mistake sorry. :(
|
Peli's code would always execute the command, because x > 120 || x < 160 is always true. Or is there a number that is smaller or equal to 120 AND bigger or equal to 160 at the same time?
|
wow.... lets look at operators please :D.. && are "and" while || are "or"... lol
|
&& is Logical AND
|| is Logical OR & is Bitwise AND | is Bitwise OR ^ is Bitwise XOR I don't think there is ^^ ; ^^ Oh yes, ~ is complement. And ! is Logical NOT |
Quote:
<< >> OP :D |
| All times are GMT -4. The time now is 19:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.