==, >, <, !=, what else?
Hey, so I am making a plugin where I need to get levels from users, and I have to make a menu when they hit level 10, and another one when they hit level 20, but when they hit level 10 and die while they have that menu opened, they can't do it anymore. So I need to check every time they spawn if they choosed something from that menu. So I did that with global variables and nVault, but now when I must check for level, I have something Like this
PHP Code:
PHP Code:
|
Re: ==, >, <, !=, what else?
I didn't read your post well,
But I think you want this code Code:
|
Re: ==, >, <, !=, what else?
You can do if(cLevel > 10 && cLeveL < 20).
For the "signs" part of your question, I'm not sure what you are asking. |
Re: ==, >, <, !=, what else?
I didn't know how to call them, but everything like equal, not equal, operators, and everything you know that is similar
|
Re: ==, >, <, !=, what else?
Quote:
|
Re: ==, >, <, !=, what else?
Quote:
What do you want to compare? Numbers? Then you just listed the operators yourself. Do you want to use bitwise operators? Cool, read a tutorial about bits(not only from this forum but any tutorial about bits). Etc... Go to the pawn language guide pdf I linked in the other topic, page 105. You'll get a nice list. |
Re: ==, >, <, !=, what else?
That guide you sent me is golden, thanks :)
|
Re: ==, >, <, !=, what else?
Quote:
PHP Code:
|
Re: ==, >, <, !=, what else?
Quote:
|
Re: ==, >, <, !=, what else?
Using ranges with "switch" is also possible:
Code:
|
| All times are GMT -4. The time now is 17:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.