Community Forums Today's Posts     Member List     Archive    
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2009
    Location
    Germany
    Posts
    66

    Solved Negative permission values

    Negative permission values are not displayed correctly in the current client. There seems to be some unsigned/signed issues with the int format. Instead of displaying -1, 4294967295 is displayed for example (which would be the correct unsigned interpretation for the binary value of -1).

  2. #2
    Join Date
    Jan 2010
    Location
    Secret Base in Arctic Region
    Posts
    1,181
    Should be already discussed in another thread methinks.
    Its the max value of an unsigned dword.

  3. #3
    Join Date
    Dec 2009
    Location
    Austria
    Posts
    12

    Question Negative Icon ID's

    Hi
    I'm trying to program a extended version of a Teamspeak viewer and i've found out something incredible crazy in the database:

    In the Table perm_server_group are the i_icon_id of some groups negative and wrong!

    Does anybody knows whats up whit that negative values and how to find out the right id's?
    Attached Images Attached Images  

  4. #4
    Join Date
    Oct 2003
    Location
    Germany
    Posts
    2,296
    This is not a bug. The negative icon ID is related to the max value of an int. Here's a PHP code snippet on howto fix the icon ID (assuming that $iconid contains the value):

    PHP Code:
    $iconid = ($iconid 0) ? (pow(232))-($iconid*-1) : $iconid

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Negative Icon ID's
    By Redasurc in forum Permission System
    Replies: 0
    Last Post: 19-06-2010, 14:24
  2. Values
    By Thran in forum Permission System
    Replies: 1
    Last Post: 16-04-2010, 07:03
  3. [Solved] Server Group Permission Values (Modify)
    By PV-Patrick in forum Permission System
    Replies: 9
    Last Post: 02-02-2010, 00:06
  4. [Bugreport] Hidden values
    By Mquadrat in forum Permission System
    Replies: 3
    Last Post: 22-12-2009, 20:30
  5. Cyts sadmin_serverSet values
    By Bert in forum [TeamSpeak 2] Addons & Scripts
    Replies: 3
    Last Post: 13-10-2006, 12:19

Posting Permissions

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