Simple Quick question
#1

PROBLEM IS SOLVED, BELOW IS A UPDATE FOR THOSE TO LEARN FROM.





"or" in pawno is "||"

example :

if(gPlayerData[playerid][VIP] >= 1 || IsPlayerAdmin(playerid))

if vip level is greater than or equal to 1 or player is admin



more operators:

|| = or
&& = and
> = greater than
< = less than
>= = more than or equal
<= = less than or equal
== = equal
!= = not equal
Reply
#2

if (gPlayerData[playerid][VIP] >= 1 ) || (IsPlayerAdmin(playerid) == 1))
Reply
#3

Quote:
Originally Posted by Azzeto
Посмотреть сообщение
if (gPlayerData[playerid][VIP] >= 1 ) || (IsPlayerAdmin(playerid) == 1))
i thought that was AND ?

o.0
Reply
#4

|| = or
&& = and
> = greater than
< = less than
>= = more than or equal
<= = less than or equal
== = equal
!= = not equal
Reply
#5

Код:
if(gPlayerData[playerid][VIP] >= 1 && IsPlayerAdmin(playerid) == 1)
@ Azzeto - noob xD

EDIT: SHIT! I read the post wrong... soz :P
@ Threshold - noob xD
Reply
#6

https://sampwiki.blast.hk/wiki/Control_Structures#Operators
Reply
#7

i think can use "if" with symbole in scrift !
Reply
#8

English-Conceptz, no need to edit the first post. Others will learn from those mistakes.
Reply
#9

Quote:
Originally Posted by grand.Theft.Otto
Посмотреть сообщение
English-Conceptz, no need to edit the first post. Others will learn from those mistakes.
i have many topics open, i dont want to get abuse because people keep replying to an already solved issue.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)