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 5 of 5
  1. #1
    Join Date
    March 2015
    Posts
    56

    Clientlist ClientQuery

    Hello

    I getting problem when I execute client list command from my ClientQuery.

    I have this code python:

    Code:
    send(s, 'clientlist')
    (dataCl, errCl) = receive(s)
    if not errCl:
      cl = dataCl[0].split('|')
      print list(dataCl)
    But I receive it:

    Code:
    >> clientlis
    << cid=18140 channel_name=Music
    << error id=0 msg=ok
    ['cid=18140 channel_name=Music', 'error id=0 msg=ok'] (print list)
    Why I receive the name of a channel? I try getting the client list only.

    What is the correct way to perform multiple commands?

    Like:

    Code:
    while True:
    
    command 1
    
    command 2
    
    command 3
    --- edit ---

    I change the order of clientlist and now I receive it:

    >> clientlist
    << selected schandlerid=2
    << error id=0 msg=ok
    No se pudo obtener el cliente id: selected schandlerid=2

    Why I get schandlerid now?

    Why the clientlist return the before command was executed?
    Last edited by Hansz; July 9th, 2015 at 04:29 AM.

  2. #2
    Join Date
    March 2015
    Posts
    56
    Someone can help?

    All code are enclosed with a While True:

    the code is repeat infinity

    When I execute the first time this work fine but in the second cycle of While the clienlist dont work anymore

  3. #3
    Join Date
    December 2009
    Location
    Germany
    Posts
    2,360
    Make sure, that you wait for the "error id=" line, before you send the next command.

  4. #4
    Join Date
    March 2015
    Posts
    56
    Hello Stefan1200

    Thanks for the answer.

    How I can wait the error= id= before send the next command?

  5. #5
    Join Date
    March 2015
    Posts
    56
    Quote Originally Posted by Stefan1200 View Post
    Make sure, that you wait for the "error id=" line, before you send the next command.
    Hello Stefan1200

    How I can wait for this line?

    I send the commands:

    Code:
    tab = getParamValue(data,"schandlerid")
    send(s, 'use schandlerid='+str(tab))
    (data, err) = receive(s)
    if not err:
      more code
    with this the receive check if it have error truth?
    I dont know why the clientlist receive other information.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [No Bug] Clientinfo vs clientlist -info
    By Toine in forum Bug Reports [EN/DE]
    Replies: 5
    Last Post: December 9th, 2014, 01:33 PM
  2. unban via clientlist
    By MissAntropic in forum Suggestions and Feedback
    Replies: 9
    Last Post: August 25th, 2014, 12:32 PM
  3. Problem with Clientquery Plugin / clientlist special symbols
    By DayDreamer87 in forum Client Plugins / Lua Scripts
    Replies: 1
    Last Post: December 14th, 2013, 09:55 PM
  4. [no bug] Query group and clientlist
    By florian_fr40 in forum Bug Reports [EN/DE]
    Replies: 2
    Last Post: December 2nd, 2010, 02:56 PM
  5. [Not possible] Get clientlist from not subscribed channel
    By banane in forum Client Plugins / Lua Scripts
    Replies: 1
    Last Post: November 4th, 2010, 03:44 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
  •