SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 18/06/2012, 10:56 PM   #1
MarinacMrcina
Big Clucker
 
MarinacMrcina's Avatar
 
Join Date: May 2012
Location: Croatia
Posts: 119
Reputation: 11
Question Some questions

Hi,I don't understand this,can someone please tell me what would every of this do:
And whats || and && and what means !=
Thanks!

pawn Code:
if(GetPVarInt(playerid,"Admin") != 0 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid,RED,"You are not an admin!");

pawn Code:
if(GetPVarInt(playerid,"Admin") != 0 || !IsPlayerAdmin(playerid)) return SendClientMessage(playerid,RED,"You are not an admin!");

pawn Code:
if(GetPVarInt(playerid,"Admin") == 0 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid,RED,"You are not an admin!");

pawn Code:
if(GetPVarInt(playerid,"Admin") == 0 || IsPlayerAdmin(playerid)) return SendClientMessage(playerid,RED,"You are not an admin!");
MarinacMrcina is offline   Reply With Quote
Old 18/06/2012, 11:01 PM   #2
Crazymax
Big Clucker
 
Join Date: Apr 2012
Posts: 79
Reputation: 12
Default Re: Some questions

|| = or
&& = and

****** or go to sa-mp wiki is it really that simple?
Crazymax is offline   Reply With Quote
Old 18/06/2012, 11:09 PM   #3
PrawkC
Huge Clucker
 
Join Date: May 2011
Posts: 485
Reputation: 52
Default Re: Some questions

Quote:
Originally Posted by Crazymax View Post
|| = or
&& = and

****** or go to sa-mp wiki is it really that simple?
is it really that hard?*

http://wiki.sa-mp.com/wiki/Control_Structures#Operators
__________________
Doin' stuff.
PrawkC is offline   Reply With Quote
Old 18/06/2012, 11:17 PM   #4
MarinacMrcina
Big Clucker
 
MarinacMrcina's Avatar
 
Join Date: May 2012
Location: Croatia
Posts: 119
Reputation: 11
Default Re: Some questions

Quote:
Originally Posted by PrawkC View Post

Thanks for that link,I could not find that!!
+rep
MarinacMrcina is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Some Questions Rokzlive Help Archive 11 19/11/2010 01:47 AM
2 Questions Rokzlive Help Archive 5 14/11/2010 04:42 AM


All times are GMT. The time now is 08:25 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.