Forum

Results 1 to 3 of 3

Thread: Wrong output

  1. #1
    Join Date
    July 2012
    Posts
    9

    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
    January 2010
    Location
    Germany
    Posts
    2,029
    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
    July 2012
    Posts
    9
    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. No OSS output
    By shantho in forum Linux
    Replies: 2
    Last Post: August 20th, 2011, 08:00 AM
  2. Text to speech output on wrong device
    By Trekkan in forum Bug Reports [EN/DE]
    Replies: 1
    Last Post: May 8th, 2010, 04:58 PM
  3. Wrong help-output on query-port
    By Scordo in forum Tools / Web Based
    Replies: 1
    Last Post: December 22nd, 2009, 01:13 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
  •