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