SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 17/03/2010, 05:51 PM   #1
Micko9
Guest
 
Posts: n/a
Default Need explanation for tags : example : "!=" and others please list all! [SLOVED]

Hello you know the tags like '!=' and '<=' idk what != means? does it mean if is not ?
 
Old 17/03/2010, 05:57 PM   #2
aircombat
High-roller
 
Join Date: Feb 2010
Posts: 1,535
Reputation: 9
Default Re: Need explanation for tags : example : "!=" and others please list all!

!= mean isnt like : if(gTeam[playerid] != Team_Ls) that mean if the team isn't LS
=< that sign mean smaller or equal like : if(level =< 5) // level is equal or smaller than 5
>= that sign mean bigger or equal like : if(level >= 5) // level is equal or bigger than 5
< that sign mean bigger if(level > 5) // level bigger than 5
> that sign mean smaller if(level < 5) // level smaller than 5
__________________

aircombat is offline  
Old 17/03/2010, 05:59 PM   #3
Micko9
Guest
 
Posts: n/a
Default Re: Need explanation for tags : example : "!=" and others please list all!

Quote:
Originally Posted by [AC
Etch ]
=! mean isnt like : if(gTeam[playerid] != Team_Ls) that mean if the team isn't LS
=< that sign mean smaller or equal like : if(level =< 5) // level is equal or smaller than 5
>= that sign mean bigger or equal like : if(level >= 5) // level is equal or bigger than 5
< that sign mean bigger if(level > 5) // level bigger than 5
> that sign mean smaller if(level < 5) // level smaller than 5
you mixed it up alitle its :
!=
>=
<=
>
<
^^ but ty anyway!
 
Old 17/03/2010, 05:59 PM   #4
aircombat
High-roller
 
Join Date: Feb 2010
Posts: 1,535
Reputation: 9
Default Re: Need explanation for tags : example : "!=" and others please list all!

oh sorry was just writing fast , srry
__________________

aircombat is offline  
Old 17/03/2010, 06:00 PM   #5
PowerSurge
Little Clucker
 
Join Date: Feb 2009
Posts: 36
Reputation: 0
Default Re: Need explanation for tags : example : "!=" and others please list all!

pawn Code:
==
Is Equal To -
pawn Code:
if(IsPlayerAdmin(playerid) == 0)
pawn Code:
>=
Is Bigger Than Or Equal To -
pawn Code:
if(GetPlayerVehicleID(playerid) >= 5)
pawn Code:
=<
Is Smaller Than Or Equal To -
pawn Code:
if(GetPlayerVehicleID(playerid) =< 5)
pawn Code:
!=
Does Not Equal -
pawn Code:
if(GetPlayerVehicleID(playerid) != 0)
pawn Code:
&&
And -
pawn Code:
if(GetPlayerVehicleID(playerid) == 5 && IsPlayerAdmin(playerid))
pawn Code:
||
Or -
pawn Code:
if(GetPlayerVehicleID(playerid) >= 10 || IsPlayerAdmin(playerid))
pawn Code:
>
Bigger Than -
pawn Code:
if(GetPlayerVehicleID(playerid) > 10)
pawn Code:
<
Smaller Than -
pawn Code:
if(GetPlayerVehicleID(playerid) < 10)




PowerSurge is offline  
Old 17/03/2010, 06:00 PM   #6
Correlli
Godfather
 
Correlli's Avatar
 
Join Date: May 2009
Location: Slovenia
Posts: 6,340
Reputation: 365
Default Re: Need explanation for tags : example : "!=" and others please list all!

Quote:
Originally Posted by [AC
Etch ]
=< that sign mean smaller or equal like : if(level =< 5) // level is equal or smaller than 5
It's <= not =<

Edit: Micko9 was faster.
Correlli is offline  
Old 17/03/2010, 06:24 PM   #7
Micko9
Guest
 
Posts: n/a
Default Re: Need explanation for tags : example : "!=" and others please list all!

Quote:
Originally Posted by PowerSurge
pawn Code:
==
Is Equal To -
pawn Code:
if(IsPlayerAdmin(playerid) == 0)
pawn Code:
>=
Is Bigger Than Or Equal To -
pawn Code:
if(GetPlayerVehicleID(playerid) >= 5)
pawn Code:
=<
Is Smaller Than Or Equal To -
pawn Code:
if(GetPlayerVehicleID(playerid) =< 5)
pawn Code:
!=
Does Not Equal -
pawn Code:
if(GetPlayerVehicleID(playerid) != 0)
pawn Code:
&&
And -
pawn Code:
if(GetPlayerVehicleID(playerid) == 5 && IsPlayerAdmin(playerid))
pawn Code:
||
Or -
pawn Code:
if(GetPlayerVehicleID(playerid) >= 10 || IsPlayerAdmin(playerid))
pawn Code:
>
Bigger Than -
pawn Code:
if(GetPlayerVehicleID(playerid) > 10)
pawn Code:
<
Smaller Than -
pawn Code:
if(GetPlayerVehicleID(playerid) < 10)

really helped ! ty!




 
 

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
"Invalid/unsupported P-code file format"- Any explanation? pyrodave Server Support 2 17/02/2010 08:11 PM
Admin script requires "ReturnUser", "strtok" and "IsNumeric" Rubennnnn Help Archive 1 02/12/2009 06:08 PM
"Bots", "AI", "NPCs"... Computer-controlled pedestrians and traffic! ssflsnoob General 2 23/11/2008 06:06 PM


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


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