What is the different? - 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: What is the different? (
/showthread.php?tid=440769)
What is the different? -
Giroud12 - 31.05.2013
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");
Re: What is the different? -
BossZk - 31.05.2013
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
Re: What is the different? -
Giroud12 - 31.05.2013
Thx bro...i really confuse...