Community Forums Today's Posts     Member List     Archive    
Results 1 to 3 of 3

Thread: Wrong output

  1. #1
    Join Date
    Jul 2012
    Posts
    5

    Solved 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.

  2. #2
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    2,038
    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);
    }
    works flawlessly.

    As for creating a new Tab take a look at ts3Functions.guiConnect

  3. #3
    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

  1. Text to speech output on wrong device
    By Trekkan in forum Bug Reports
    Replies: 1
    Last Post: 08-05-2010, 15:58
  2. Wrong help-output on query-port
    By Scordo in forum Tools
    Replies: 1
    Last Post: 22-12-2009, 12:13
  3. Wrong IP?
    By tsh5125 in forum [TeamSpeak 2] Server Support
    Replies: 4
    Last Post: 29-09-2007, 22:41
  4. Something really wrong...
    By Riddoc in forum [TeamSpeak 2] Client Support
    Replies: 0
    Last Post: 09-08-2004, 21:40
  5. Something wrong help me out
    By BlazeABlunt36 in forum [TeamSpeak 2] Server Support
    Replies: 0
    Last Post: 23-02-2003, 00:41

Posting Permissions

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