Notice to all users

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

Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    October 2015
    Germany, Bavaria

    Question ERROR_ok always true, even if requestClientPoke fails?

    So I wrote the following piece of code:

    PHP Code:
    void PokeUserIfRequested(uint64 schidanyID clid, const charmessage) {
    |     if (PokeData::users->Contains(clid)) {
    |        if (ts3Functions.requestClientPoke(schidclidmessageNULL) != ERROR_ok) {
    |            printf("[ RHS ] An error occured while trying to poke user %hu"clid);
    |            return;
    |        }
    |        system("timeout 1 > nul"); // Don't worry about this line, this function runs in a non-blocking thread
    |     }
    | } 
    Some sidenotes:
    • This function runs in a thread
    • This function runs in a loop
    • The language used is C++/CLI with .NET elements (PokeData::Users is a List<anyID> in the ref class PokeData class.)

    So the problem I have is that when the user disconnects, the function still attempts to poke him.
    But shouldnt that fail and print out the statement in line 3???
    I mean, when the client disconnects, shouldnt it raise ERROR_client_invalid_id or something else, but not ERROR_ok???
    Last edited by Jhhhj_original; December 14th, 2018 at 06:49 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. requestClientMove only returning ERROR_ok
    By 4574312554 in forum Client Plugins / Lua Scripts
    Replies: 3
    Last Post: April 5th, 2018, 11:52 AM
  2. [Evaluation] Bug when channel_flag_maxclients_unlimited=true
    By DatDraggy in forum Bug Reports [EN/DE]
    Replies: 6
    Last Post: August 14th, 2017, 09:15 AM
  3. playWaveFile: ERROR_OK but not playing anything
    By BaumwolleHD in forum Client Plugins / Lua Scripts
    Replies: 1
    Last Post: December 11th, 2015, 01:26 AM
  4. DatabaseQuery CRITICAL ERROR_ok
    By seler in forum Server Support
    Replies: 2
    Last Post: September 24th, 2014, 08:55 PM
  5. PluginSDK getClientID returns ERROR_ok when not connected.
    By SilentStorm in forum Bug Reports [EN/DE]
    Replies: 1
    Last Post: January 26th, 2012, 11:23 AM

Tags for this Thread

Posting Permissions

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