req:when someone send message to me, i will change my status automatic appear offline |
Author: |
Message: |
Nathan
Veteran Member
Yeah, "large dimensions" ;)
Posts: 2984 Reputation: 76
– / /
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 |
|
|
matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
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 |
|
|
Ezra
Veteran Member
Forgiveness is between them and God
Posts: 1960 Reputation: 31
37 / /
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 |
|
|
roflmao456
Skinning Contest Winner
Posts: 955 Reputation: 24
30 / /
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 |
|
|
Matti
Elite Member
Script Developer and Helper
Posts: 1646 Reputation: 39
32 / /
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.
|
|
06-23-2007 05:30 PM |
|
|
akyyy
Junior Member
Posts: 32
Joined: Apr 2005
|
|
07-05-2007 03:02 PM |
|
|
toddy
Veteran Member
kcus uoy
Posts: 2573 Reputation: 49
– / /
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?
but i just change status, when xxx@msn.com write to me
no all
(example: http://shoutbox.menthix.net/showthread.php?tid=74676 )
can you repeat that in english please ?
|
|
07-05-2007 03:06 PM |
|
|
akyyy
Junior Member
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 |
|
|
Jimbo
Veteran Member
Posts: 1650 Reputation: 18
32 / /
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
[/Off-topic]
|
|
07-05-2007 06:04 PM |
|
|
Screeny²
Junior Member
Posts: 30 Reputation: 1
36 / /
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 |
|
|
Pages: (2):
« First
«
1
[ 2 ]
Last »
|
|