Results 1 to 3 of 3
Thread: Wrong output
-
04-07-2012, 02:53 #1
-= TeamSpeak User =-
- Join Date
- Jul 2012
- Posts
- 5
Wrong output
Hello everyone, I don't know how to print a variable to the current tab
Is it even possible?
I use the ts3Functions.printMessageToCurrentTab(); function and when I try to pass the variable to it like this: ts3Functions.printMessageToCurrentTab(myVar); I get an error "a value of type "char" cannot be used to initialize an entity of type "const char *"", and when I pass the pointer to it I get this output "��������������������Ĵ"
I know that I need to dereference the pointer but I can't do it because the function won't let me.
I would also like to know how to create a new tab.
-
04-07-2012, 06:08 #2
-= TeamSpeak Fanatic =-
- Join Date
- Jan 2010
- Location
- Germany
- Posts
- 2,038
works flawlessly.Code:void ts3plugin_init() { char aPath[PATH_BUFSIZE]; ts3Functions.getAppPath(aPath, PATH_BUFSIZE); char myText[1024]; snprintf(myText, 1024, "TeamSpeak 3 is installed in %s\n", aPath); ts3Functions.printMessageToCurrentTab(myText); }
As for creating a new Tab take a look at ts3Functions.guiConnect
-
04-07-2012, 06:56 #3
-= TeamSpeak User =-
- Join Date
- Jul 2012
- Posts
- 5
Thanks this works perfectly
. But I can't find anything about the "ts3Functions.guiConnect" function I looked in the test plugin source code, docs and didn't found anything about this. Could you provide me with a sample code for this?
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Text to speech output on wrong device
By Trekkan in forum Bug ReportsReplies: 1Last Post: 08-05-2010, 15:58 -
Wrong help-output on query-port
By Scordo in forum ToolsReplies: 1Last Post: 22-12-2009, 12:13 -
Wrong IP?
By tsh5125 in forum [TeamSpeak 2] Server SupportReplies: 4Last Post: 29-09-2007, 22:41 -
Something really wrong...
By Riddoc in forum [TeamSpeak 2] Client SupportReplies: 0Last Post: 09-08-2004, 21:40 -
Something wrong help me out
By BlazeABlunt36 in forum [TeamSpeak 2] Server SupportReplies: 0Last Post: 23-02-2003, 00:41


