sdrnavin
October 2nd, 2016, 10:36 AM
I want to have a mainchannel and 10 subchannels, this main channel has to speak to all subchannels.I thought whisperlist will do this, I tried like this,
public void Speaktoall(bool Sstatus)
{
uint64 scHandlerID = ts3_client.GetServerConnectionHandlerID();
if (Sstatus)
{
List<uint64> Allchanels = ts3_client.GetChannelList();// All channels in server
uint64[] TempChannels = new uint64[Allchanels.Count];
for (int t = 0; t < Allchanels.Count; t++)
{
TempChannels[t] = Allchanels[t];
print("Whispher to " + Allchanels[t]);
// print(ts3_client.GetChannelVariableAsString(TempCh annels[t-2],ChannelProperties.CHANNEL_NAME)+ " - Client count " + ts3_client.GetChannelClientList(scHandlerID, TempChannels[t-2]).Count);
}
ts3_client.RequestClientSetWhisperList(scHandlerID , 0, TempChannels, null);
}
else
{
ts3_client.RequestClientSetWhisperList(scHandlerID , 0,null, null);
}
}
But its not working. Can anyone help me on this
public void Speaktoall(bool Sstatus)
{
uint64 scHandlerID = ts3_client.GetServerConnectionHandlerID();
if (Sstatus)
{
List<uint64> Allchanels = ts3_client.GetChannelList();// All channels in server
uint64[] TempChannels = new uint64[Allchanels.Count];
for (int t = 0; t < Allchanels.Count; t++)
{
TempChannels[t] = Allchanels[t];
print("Whispher to " + Allchanels[t]);
// print(ts3_client.GetChannelVariableAsString(TempCh annels[t-2],ChannelProperties.CHANNEL_NAME)+ " - Client count " + ts3_client.GetChannelClientList(scHandlerID, TempChannels[t-2]).Count);
}
ts3_client.RequestClientSetWhisperList(scHandlerID , 0, TempChannels, null);
}
else
{
ts3_client.RequestClientSetWhisperList(scHandlerID , 0,null, null);
}
}
But its not working. Can anyone help me on this