Forum

Results 1 to 3 of 3
  1. #1
    Join Date
    August 2018
    Posts
    3

    Client IDs assigned from 0 oder 1?

    Do client IDs start from 1 or from 0? I want to use my own functions with default param values and optional user ID as such optional param (for example). I wanted to use -1 as default value but then realized, that they are of type uint16 (or unsigned __int16). So can I safely use 0 for kind of "non-id" or do I really need to use multiple functions?

    Or in fewer words: Do servers ever assign client IDs with 0?

  2. #2
    Join Date
    June 2008
    Posts
    18,143
    Client IDs start by ID 1.
    In general we use ID 1 as first ID everywhere else and there is only one exception. The server template uses server id 0.
    Last edited by dante696; August 24th, 2018 at 11:36 AM.
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  3. #3
    Join Date
    August 2018
    Posts
    3
    Excellent! Thank you.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need help regarding in which order power is assigned
    By Alaeya in forum Permission System
    Replies: 1
    Last Post: September 27th, 2017, 01:47 PM
  2. Keep somone from getting assigned a group?
    By BobBart in forum Permission System
    Replies: 7
    Last Post: December 10th, 2013, 09:28 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
  •