Scripting Signs
#1

Hey guys, I have a question.

What does these mean like, I\'d like list of definitions:
pawn Code:
For E.G:
if(PlayerInfo[playerid][pAdmin] > 3)

if(PlayerInfo[playerid][pAdmin] < 3)
Like what does the \'>\' and \'<\' mean all that, because I\'m not really sure. Can someone like give a list for me? If you have more like those kind of signs, I\'d like them too and with the definitions.

Thanks.
Reply
#2

> Greater than

< Smaller than

>= greater or equal to

<= smaller or equal to

&& and

|| or


I think there are some more but I can\'t think of them atm


P.s on phone sorry for any spelling/grammar mistakes
Reply
#3

Hey
Look here:
https://sampwiki.blast.hk/wiki/Keywords:Statements#if

a == b -> a is the same as b (1=1 , 2=2 , 5=5)
a != b -> a is NOT as b (1<->2 , 10<->131)
a > b -> a is greater than b (2>1 , 10>3)
a >= b -> a is greater or equal than b (a == b OR a > b)
a < b -> a is less than b (1<10 , 3<12)
a <= b -> a is less or equal than b (a == b OR a < b)

Greetz
~ Kevin
Reply
#4

Quote:
Originally Posted by Kevin54321
View Post
Hey

Look here:
https://sampwiki.blast.hk/wiki/Keywords:Statements#if


a == b -> a is the same as b (1=1 , 2=2 , 5=5)

a != b -> a is NOT as b (1<->2 , 10<->131)

a > b -> a is greater than b (2>1 , 10>3)

a >= b -> a is greater or equal than b (a == b OR a > b)

a < b -> a is less than b (1<10 , 3<12)

a <= b -> a is less or equal than b (a == b OR a < b)


Greetz

~ Kevin
Quote:
Originally Posted by thefatshizms
View Post
> Greater than

< Smaller than

>= greater or equal to

<= smaller or equal to

&& and

|| or


I think there are some more but I can\'t think of them atm


P.s on phone sorry for any spelling/grammar mistakes
Thanks all you both !
Reply
#5

Failed to read
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)