Raised This Month: $ Target: $400
 0% 

==, >, <, !=, what else?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-15-2020 , 11:58   Re: ==, >, <, !=, what else?
Reply With Quote #1

You can do if(cLevel > 10 && cLeveL < 20).
For the "signs" part of your question, I'm not sure what you are asking.
__________________
HamletEagle is offline
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 06-15-2020 , 12:01   Re: ==, >, <, !=, what else?
Reply With Quote #2

I didn't know how to call them, but everything like equal, not equal, operators, and everything you know that is similar
__________________
Contact! || Discord:
Mr_Boopsy_#2066
supertrio17 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-15-2020 , 12:05   Re: ==, >, <, !=, what else?
Reply With Quote #3

Quote:
Originally Posted by supertrio17 View Post
I didn't know how to call them, but everything like equal, not equal, operators, and everything you know that is similar
This is a very vague question.
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.
__________________
HamletEagle is offline
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 06-15-2020 , 12:10   Re: ==, >, <, !=, what else?
Reply With Quote #4

That guide you sent me is golden, thanks
__________________
Contact! || Discord:
Mr_Boopsy_#2066
supertrio17 is offline
shauli
Member
Join Date: Jun 2018
Old 06-15-2020 , 13:54   Re: ==, >, <, !=, what else?
Reply With Quote #5

Quote:
Originally Posted by HamletEagle View Post
You can do if(cLevel > 10 && cLeveL < 20).
Same as HamletEagle said, but just wanted to add that
PHP Code:
if(10 cLevel 20
will also work in Pawn, but won't work in most programming languages.

Last edited by shauli; 06-15-2020 at 13:55.
shauli is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-15-2020 , 15:31   Re: ==, >, <, !=, what else?
Reply With Quote #6

Quote:
Originally Posted by shauli View Post
Same as HamletEagle said, but just wanted to add that
PHP Code:
if(10 cLevel 20
will also work in Pawn, but won't work in most programming languages.
it depends on how smart the compiler is ...
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode