SA-MP Forums Archive
Scripting Signs - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Scripting Signs (/showthread.php?tid=398911)



Scripting Signs - JustinAn - 11.12.2012

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.



Re: Scripting Signs - thefatshizms - 11.12.2012

> 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


AW: Scripting Signs - Kevin54321 - 11.12.2012

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


Re: Scripting Signs - JustinAn - 11.12.2012

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 !


Re: Scripting Signs - Boooth - 12.12.2012

Failed to read