Need explanation for tags : example : "!=" and others please list all! [SLOVED] - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need explanation for tags : example : "!=" and others please list all! [SLOVED] (
/showthread.php?tid=134804)
Need explanation for tags : example : "!=" and others please list all! [SLOVED] - Micko9 - 17.03.2010
Hello you know the tags like '!=' and '<=' idk what != means? does it mean if is not ?
Re: Need explanation for tags : example : "!=" and others please list all! -
aircombat - 17.03.2010
!= 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
Re: Need explanation for tags : example : "!=" and others please list all! - Micko9 - 17.03.2010
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!
Re: Need explanation for tags : example : "!=" and others please list all! -
aircombat - 17.03.2010
oh sorry was just writing fast , srry
Re: Need explanation for tags : example : "!=" and others please list all! -
PowerSurge - 17.03.2010
Is Equal To -
pawn Код:
if(IsPlayerAdmin(playerid) == 0)
Is Bigger Than Or Equal To -
pawn Код:
if(GetPlayerVehicleID(playerid) >= 5)
Is Smaller Than Or Equal To -
pawn Код:
if(GetPlayerVehicleID(playerid) =< 5)
Does Not Equal -
pawn Код:
if(GetPlayerVehicleID(playerid) != 0)
And -
pawn Код:
if(GetPlayerVehicleID(playerid) == 5 && IsPlayerAdmin(playerid))
Or -
pawn Код:
if(GetPlayerVehicleID(playerid) >= 10 || IsPlayerAdmin(playerid))
Bigger Than -
pawn Код:
if(GetPlayerVehicleID(playerid) > 10)
Smaller Than -
pawn Код:
if(GetPlayerVehicleID(playerid) < 10)
Re: Need explanation for tags : example : "!=" and others please list all! -
Correlli - 17.03.2010
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.
Re: Need explanation for tags : example : "!=" and others please list all! - Micko9 - 17.03.2010
Quote:
Originally Posted by PowerSurge
Is Equal To -
pawn Код:
if(IsPlayerAdmin(playerid) == 0)
Is Bigger Than Or Equal To -
pawn Код:
if(GetPlayerVehicleID(playerid) >= 5)
Is Smaller Than Or Equal To -
pawn Код:
if(GetPlayerVehicleID(playerid) =< 5)
Does Not Equal -
pawn Код:
if(GetPlayerVehicleID(playerid) != 0)
And -
pawn Код:
if(GetPlayerVehicleID(playerid) == 5 && IsPlayerAdmin(playerid))
Or -
pawn Код:
if(GetPlayerVehicleID(playerid) >= 10 || IsPlayerAdmin(playerid))
Bigger Than -
pawn Код:
if(GetPlayerVehicleID(playerid) > 10)
Smaller Than -
pawn Код:
if(GetPlayerVehicleID(playerid) < 10)
really helped ! ty!
|