Sorry for my English
I have some problem with chat message.
I want create a chat that can send message to All in the zone , to Party (inside some room), or to one user.
Only party work fine.
This code is similar to mine...but not equal
1)I have did sending message to all in this way:
Code: Select all
string msg="Hello";
nomeStanzaPerChat = "Word";
SFSObject objOut = new SFSObject();
objOut.PutUtfString("ns", nomeStanzaPerChat);
List<Room> rooms = sfs.RoomManager.GetRoomList();
for (int i = 0; i < rooms.Count; i++)
{
sfs.Send(new PublicMessageRequest(msg, objOut, rooms[i]));
}2)private message:
Code: Select all
string name=//some name
User userDestinatario = sfs.UserManager.GetUserByName(name);
nomeStanzaPerChat = "whisper";
SFSObject objOut = new SFSObject();
objOut.PutUtfString("ns", nomeStanzaPerChat);
sfs.Send(new PrivateMessageRequest(messaggioChat, userDestinatario.Id, objOut));if users "a","b" and "c" are inside the lobby room if "a" send a private message to "b", "b" receive this message correctly and "b" can send to "a" the replace.
If "a" join inside an other room," a" can send to "b" the message, and" b "receive the message but if "b" send to" a" a message, he can't find him.
I have these two problems.
Can you help me?
N.