What is the different?
#1

What is the different between :

pawn Код:
if(PlayerInfo[playerid][pAdminLevel] >= 3) return SendClientMessage(playerid, RED,"LALLALALLALA");
pawn Код:
if(!PlayerInfo[playerid][pAdminLevel] >= 3) return SendClientMessage(playerid, RED,"LALLALALLALA");
Reply
#2

Quote:
Originally Posted by Giroud12
Посмотреть сообщение
What is the different between :

pawn Код:
if(PlayerInfo[playerid][pAdminLevel] >= 3) return SendClientMessage(playerid, RED,"LALLALALLALA");
pawn Код:
if(!PlayerInfo[playerid][pAdminLevel] >= 3) return SendClientMessage(playerid, RED,"LALLALALLALA");
The first one will return the message to a player with admin level of 3 or higher and the second one will only send it to 2 or even if the player is not an admin

'!' means is not equal to

so if you do (!IsPlayerAdmin(playerid))

that means if someone isnt an admin
Reply
#3

Thx bro...i really confuse...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)