Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 2 of 2
  1. #1
    Join Date
    January 2010
    Location
    Essen - NRW - Germany
    Posts
    26

    Question [PLUGINSDK] requestClientSetWhisperList -> no error -> no whisper

    Hi, i'm trying to set a Whisper List in my Plugin, and got some Problems.

    The requestClientSetWhisperList Function doesn't throw an error, but it also doesn't start to Whisper, and i don't know why. Do i have to do anything else after setting the Whisper list. (I assume that the Red Dot beneath the nick is displayed in Plugin Whispers too?)

    Here is the Test Function i've created for the Whisper list.

    Code:
    void TS3_WHISPER_TOGGLE()
    {
    	unsigned int error;
    	int result;
    	char test[500];
    	uint64 serverConnectionHandlerID = 0;
    	anyID clientID; 
    	uint64 targetChannelIDArray[2];
    	anyID targetClientIDArray[13];
    
    	serverConnectionHandlerID = ts3Functions.getCurrentServerConnectionHandlerID();
    
    	if((error = ts3Functions.getClientID(serverConnectionHandlerID, &clientID)) != ERROR_ok) {
    									char* errorMsg;
    									if(ts3Functions.getErrorMessage(error, &errorMsg) != ERROR_ok) {
    										printf("ERROR: Problem while getClientID (%s)\n", errorMsg);
    										ts3Functions.freeMemory(errorMsg);
    									}
    								
    								}
    	targetClientIDArray[0] = 1;
    	targetClientIDArray[1] = 2;
    	targetClientIDArray[2] = 3;
    	targetClientIDArray[3] = 4;
    	targetClientIDArray[4] = 5;
    	targetClientIDArray[5] = 6;
    	targetClientIDArray[6] = 7;
    	targetClientIDArray[7] = 8;
    	targetClientIDArray[8] = 9;
    	targetClientIDArray[9] = 10;
    	targetClientIDArray[10] = 11;
    	targetClientIDArray[11] = 2097;
    	targetClientIDArray[11] = 0;
    	targetChannelIDArray[0] = 4;
    	targetChannelIDArray[1] = 0;
    	
    	if((error = ts3Functions.requestClientSetWhisperList(serverConnectionHandlerID,clientID, targetChannelIDArray,targetClientIDArray,NULL)) != ERROR_ok) {
    									char* errorMsg;
    									if(ts3Functions.getErrorMessage(error, &errorMsg) != ERROR_ok) {
    										printf("ERROR: Problem while requestClientSetWhisperList (%s)\n", errorMsg);
    										ts3Functions.freeMemory(errorMsg);
    									}
    									
    
    								
    								}
    
    }

  2. #2
    Join Date
    January 2010
    Location
    Essen - NRW - Germany
    Posts
    26
    Ok, now it's partly solved... the Problem war, that i didn't set the INPUT_ACTIVE value in selfvariables.

    I can now whisper to clients. But the problem is.. i can't see actually that i'm whispering..
    The light in my clients lights up, but not in read as usually, and not with the red dots beneath whom i#m whispering to. instead it light's im in blue, suggesting me i'm normally talking.

    Here is the Code (please add the info that you have to toggle the input in the plugin documentation...

    Code:
    void TS3_WHISPER_TOGGLE(int PTT_STATUS)
    {
    	unsigned int error;
    	int result;
    	uint64 serverConnectionHandlerID = 0;
    	anyID clientID; 
    	anyID targetClientIDArray[100];
    
    	serverConnectionHandlerID = ts3Functions.getCurrentServerConnectionHandlerID();
    
    	if((error = ts3Functions.getClientID(serverConnectionHandlerID, &clientID)) != ERROR_ok) {
    									char* errorMsg;
    									if(ts3Functions.getErrorMessage(error, &errorMsg) != ERROR_ok) {
    										printf("ERROR: Problem while getClientID (%s)\n", errorMsg);
    										ts3Functions.freeMemory(errorMsg);
    									}
    								
    								}
    	targetClientIDArray[0] = 10;
    	targetClientIDArray[1] = 0;
    
    	if (PTT_STATUS == INPUT_ACTIVE) {
    	if((error = ts3Functions.requestClientSetWhisperList(serverConnectionHandlerID,0, NULL,targetClientIDArray,NULL)) != ERROR_ok) {
    									char* errorMsg;
    									if(ts3Functions.getErrorMessage(error, &errorMsg) != ERROR_ok) {
    										printf("ERROR: Problem while requestClientSetWhisperList (%s)\n", errorMsg);
    										ts3Functions.freeMemory(errorMsg);
    									}
    									
    
    								
    								}
    	TS3_PTT_TOGGLE(PTT_STATUS);
    	} else if (PTT_STATUS == INPUT_DEACTIVATED) {
    			if((error = ts3Functions.requestClientSetWhisperList(serverConnectionHandlerID,0, NULL,NULL,NULL)) != ERROR_ok) {
    									char* errorMsg;
    									if(ts3Functions.getErrorMessage(error, &errorMsg) != ERROR_ok) {
    										printf("ERROR: Problem while requestClientSetWhisperList (%s)\n", errorMsg);
    										ts3Functions.freeMemory(errorMsg);
    									}
    									
    
    								
    								}
    	TS3_PTT_TOGGLE(PTT_STATUS);
    	}
    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Evaluation] [Lua] ts3.requestClientSetWhisperList & other whisper functions missing?
    By VADemon in forum Client Plugins / Lua Scripts
    Replies: 3
    Last Post: March 19th, 2015, 12:52 AM
  2. [PluginSDK] Whisper-sending not caught by client ui
    By Philosound in forum Bug Reports [EN/DE]
    Replies: 0
    Last Post: July 25th, 2013, 01:06 PM
  3. [PLUGINSDK] how to activate Push-To-Talk for Whisper lists?
    By kubax in forum Client Plugins / Lua Scripts
    Replies: 6
    Last Post: January 29th, 2013, 09:28 AM
  4. [No Bug] [PluginSDK] Error 1796(0x0704), Explanation please. Bug?
    By Master_D in forum Bug Reports [EN/DE]
    Replies: 2
    Last Post: July 5th, 2011, 02:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •