Explanations of (don't know -.-)
#1

Could someone explain me what means these: '' != '' '' == '' and others?
I'd like to get a link that explains all of them.
Reply
#2

I think != means does not equip to, for example
PHP код:
if(PlayerInfo[playerid][pMember] != 1) return SendClientMessage(playerid,COLOR_GRAY,"Error: You're not in group 1."); 
And == means Equals,
PHP код:
 If(PlayerInfo[playerid][pMember] == 1) return SendClientMessage(playerid,COLOR_GRAY,"Successfull: You're in group 1."); 
Reply
#3

!= i think means "No match"
== "Exact match"
and then you got <= and >= wich means, "under or equal to" and "over or equal to"
< and > "Under" and "Over"
Reply
#4

https://sampwiki.blast.hk/wiki/Control_Structures
^ That page describes the operators pretty well.
Reply
#5

!= means doesn't equal, used only in conditions, like the 'if' conditional, Ex:
pawn Код:
Test = 1
if(Test != 1)//means if it equals anything other than the value 1, which will return false of course, because Test is already set to 1
{
    //your code goes here
}
else if(Test == 1)//If the value of Test equals one, and it will return true, coz the Test value is already one, and this code will be executed
{
    //your code goes here
}
Reply
#6

Okay, thanks!
Reply
#7

Gimme reputation if I helped, lol
Reply
#8

Quote:
Originally Posted by Chriss White
Посмотреть сообщение
Gimme reputation if I helped, lol
No offense, but now you look really stupid. "Gimme...". If I'm him I would ask myself "Why?". If he thinks you deserve it he'll give you
Reply
#9

May be coz I've just helped him, and coz I'm running low on rep.
Reply
#10

Quote:
Originally Posted by Chriss White
Посмотреть сообщение
Gimme reputation if I helped, lol
...
God! I see everyday posts in some threads about help and the most of people ask for Reputation.
Isn't it so important?
Don't wait from every post (with help to get Rep).
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)