Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sendMessage (server script) - URGENT

4 views
Skip to first unread message

Ziggi

unread,
Oct 16, 2002, 10:25:02 PM10/16/02
to
Hi !

Did anybody managed to send a message from a SMUS 3 script ?

I try something like this:

------------------------------------
on customEvent(me, movie, group, user)
pGroupObject = group
pGroupName = group.name
pUserObject = user
pUserName = user.name
pChatSubject = "system.script.CustomSubject"
pReply = "CustomMessage"
pGroupObject.sendMessage(pGroupName, pChatSubject, pReply, 0, 0, "SYSTEM")
end
-----------------------------------

As the result there is an error mesage in the SMUS console: "integer expected".

In a contrary, if the last line of the above script is:

pGroupObject.sendMessage(pChatSubject, pReply, 0, 0, "SYSTEM")

then no error occures, but nothing seems to be sent to client as well.

Is anybody able to provide me a WORKING EXAMPLE of SMUS 3 groupObject.sendMessage ???

Please URGENT !
Ziggi


Christian Kdolsky

unread,
Oct 17, 2002, 6:14:02 AM10/17/02
to
the correct syntax is simply:

pGroupObject.sendMessage(theSubject, theMessage)

chris


"Ziggi" <zigg...@poczta.onet.pl> wrote in message
news:aol6ov$8k9$1...@forums.macromedia.com...

Ziggi

unread,
Oct 17, 2002, 11:36:17 AM10/17/02
to
Thank you !

Ziggi
-----------------------------------------------------
Christian Kdolsky wrote:
:: the correct syntax is simply:

samb...@gmail.com

unread,
Jul 12, 2013, 3:32:00 AM7/12/13
to
0 new messages