Shoutbox

need help with my script - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: need help with my script (/showthread.php?tid=76592)

need help with my script by crzymike13 on 08-07-2007 at 11:43 AM

im new to this and im trying to make several thing on my script.
one of the things is the OnEvent_MyStatusChange, but i dont get the [enum] part of the code.

OnEvent_MyStatusChange(
    [enum] NewStatus
);


???


RE: need help with my script by GNSPS on 08-07-2007 at 02:31 PM

what is it that you don't get?
Are you using it as a number?
If you are I don't understand what your problem is... :P


RE: need help with my script by Spunky on 08-07-2007 at 02:38 PM

quote:
Originally posted by The Scripting Documentation
Parameters
NewStatus
[enum] New status of the user, represented by a number taken from the following enumeration:

2 - Appear Offline
3 - Online
4 - Busy
5 - Be Right Back
6 - Idle
7 - Away
8 - In a Call
9 - Out to Lunch


NewStatus will equal a number representing the new status
RE: need help with my script by matty on 08-07-2007 at 02:38 PM

quote:
Originally posted by crzymike13
im new to this and im trying to make several thing on my script.
one of the things is the OnEvent_MyStatusChange, but i dont get the [enum] part of the code.

OnEvent_MyStatusChange(
    [enum] NewStatus
);


???

The enum NewStatus is quite confusing actually however that value will only contain a number that does not need to be enumerated through.

For instance this code :

code:
function OnEvent_MyStatusChanged(nNewStatus) {
    Debug.Trace(nNewStatus);
}
Will simply output a number corresponding to the status.

2 - Appear Offline
3 - Online
4 - Busy
5 - Be Right Back
6 - Idle
7 - Away
8 - In a Call
9 - Out to Lunch