req:when someone send message to me, i will change my status automatic appear offline |
Author: |
Message: |
Nathan
Veteran Member
![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif)
![Avatar](images/avatars/removed/dimensions.png)
Yeah, "large dimensions" ;)
Posts: 2978 Reputation: 76
– / / ![United Kingdom Flag](images/flags/gb.png)
Joined: Apr 2005
|
RE: req:when someone send message to me, i will change my status automatic appear off
No
"2" === 2 would be true. 3 '='s means it has to be identical. Which it is.
(in php)
quote: Originally posted by php.net
$a === $b Identical TRUE if $a is equal to $b, and they are of the same type.
This post was edited on 06-22-2007 at 06:41 PM by Nathan.
|
|
06-22-2007 06:40 PM |
|
![](images/pixel.gif) |
matty
Scripting Guru
![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif)
Posts: 8328 Reputation: 109
39 / / ![Canada Flag](images/flags/ca.png)
Joined: Dec 2002
Status: Away
|
RE: req:when someone send message to me, i will change my status automatic appear offline
|
|
06-22-2007 06:47 PM |
|
![](images/pixel.gif) |
Ezra
Veteran Member
![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif)
![Avatar](http://tsdme.nl/yass/image/1-1.png)
Forgiveness is between them and God
Posts: 1960 Reputation: 31
37 / / ![The Netherlands Flag](images/flags/nl.png)
Joined: Mar 2003
|
RE: req:when someone send message to me, i will change my status automatic appear off
quote: Originally posted by Napbree
No
"2" === 2 would be true. 3 '='s means it has to be identical. Which it is.
You can test it yourself, "2" and 2 are not identical as the first one is a string (char array) and the second one is an integer.
Simple test:
code: function testit()
{
"2" === 2 ? Debug.Trace("TRUE") : Debug.Trace("FALSE");
}
|
|
06-22-2007 08:44 PM |
|
![](images/pixel.gif) |
roflmao456
Skinning Contest Winner
![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif)
![Avatar](http://www.yetanothersig.com/image/4-5.png)
Posts: 955 Reputation: 24
30 / / ![Canada Flag](images/flags/ca.png)
Joined: Nov 2006
Status: Away
|
RE: req:when someone send message to me, i will change my status automatic appear offline
from looking @ the code
why is it _origin equal to your name?
shouldn't it be != instead?
because then only you (when you send a message) will appear offline when you send
[quote]
Ultimatess6: What a noob mod
|
|
06-23-2007 04:11 PM |
|
![](images/pixel.gif) |
Matti
Elite Member
![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif)
![Avatar](http://www.gravatar.com/avatar/50cd7dac807a483ca5c470b8c8e0b2e6?s=96)
Script Developer and Helper
Posts: 1646 Reputation: 39
32 / / ![Belgium Flag](images/flags/be.png)
Joined: Apr 2004
|
RE: req:when someone send message to me, i will change my status automatic appear off
quote: Originally posted by roflmao456
from looking @ the code
why is it _origin equal to your name?
shouldn't it be != instead?
because then only you (when you send a message) will appear offline when you send
Correct. Therefore, you should use "!==" (not the same value and same type) or "!=" (not the same value).
quote: Originally posted by Napbree
No
"2" === 2 would be true. 3 '='s means it has to be identical. Which it is.
No, the first part is a string and the second is an integer. In the case of comparing names, it isn't really necessary to check if the types are equal to. Messenger.MyName would only return a non-string when you're not signed in, but I can't think of a case where _origin is a non-string. But, for the sake of avoiding the smallest glitch, it's recommend to use "===" if you're sure the types are equal, otherwise something weird happened and you better make the script don't respond on weird things. ![:P](images/smilies/msn_tongue.gif)
|
|
06-23-2007 05:30 PM |
|
![](images/pixel.gif) |
akyyy
Junior Member
![*](images/star.gif) ![*](images/star.gif)
Posts: 32
Joined: Apr 2005
|
|
07-05-2007 03:02 PM |
|
![](images/pixel.gif) |
toddy
Veteran Member
![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif)
![Avatar](images/avatars/sexy.gif)
kcus uoy
Posts: 2571 Reputation: 49
– / / ![Holy See (Vatican City State) Flag](images/flags/va.png)
Joined: Jun 2004
|
RE: req:when someone send message to me, i will change my status automatic appear offline
quote: Originally posted by akyyy
well?![:(](images/smilies/msn_sad.gif)
but i just change status, when xxx@msn.com write to me
no all![:)](images/smilies/msn_happy.gif)
(example: http://shoutbox.menthix.net/showthread.php?tid=74676 )
can you repeat that in english please ?
|
|
07-05-2007 03:06 PM |
|
![](images/pixel.gif) |
akyyy
Junior Member
![*](images/star.gif) ![*](images/star.gif)
Posts: 32
Joined: Apr 2005
|
O.P. RE: req:when someone send message to me, i will change my status automatic appear offline
when someone send message to me, i will change my status automatic appear offline
and
when someone sing out, i will change my status automatic online
|
|
07-05-2007 05:58 PM |
|
![](images/pixel.gif) |
Jimbo
Veteran Member
![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif)
![Avatar](http://img526.imageshack.us/img526/9646/jimbodudesavef1.jpg)
Posts: 1649 Reputation: 18
32 / / ![United Kingdom Flag](images/flags/gb.png)
Joined: Jul 2006
|
RE: req:when someone send message to me, i will change my status automatic appear offline
quote: Originally posted by akyyy
when someone send message to me, i will change my status automatic appear offline
and
when someone sing out, i will change my status automatic online
[Off-topic]
What is the point of that ![:s](images/smilies/msn_confused.gif)
[/Off-topic]
|
|
07-05-2007 06:04 PM |
|
![](images/pixel.gif) |
Screeny²
Junior Member
![*](images/star.gif) ![*](images/star.gif)
![Avatar](http://www.imagebanana.com/img/n2bf6usn/Peace_and_Freedom_by_celsojunior.jpg)
Posts: 30 Reputation: 1
36 / / ![Germany Flag](images/flags/de.png)
Joined: Jan 2007
|
RE: req:when someone send message to me, i will change my status automatic appear offline
I assume that he wants only when a specific person sends him a message, his status should automatically set itself to 'Appearing offline' to make this person believe he's gone, and when he or she finally signs-out, his status should be online again.
akyyy: You could try the "Block Talking" feature of StuffPlug 3.
This post was edited on 07-05-2007 at 06:49 PM by Screeny².
|
|
07-05-2007 06:46 PM |
|
![](images/pixel.gif) |
Pages: (2):
« First
«
1
[ 2 ]
Last »
|
|