Results 1 to 4 of 4
Thread: Negative permission values
-
12-02-2010, 12:37 #1
-= TeamSpeak Lover =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 66
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).
-
12-02-2010, 22:28 #2
-= TeamSpeak Fanatic =-
- 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.
-
19-06-2010, 14:24 #3
-= TeamSpeak User =-
- Join Date
- Dec 2009
- Location
- Austria
- Posts
- 12
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?
-
19-01-2012, 15:17 #4
-= TeamSpeak Servant =-
- 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(2, 32))-($iconid*-1) : $iconid;
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Negative Icon ID's
By Redasurc in forum Permission SystemReplies: 0Last Post: 19-06-2010, 14:24 -
Values
By Thran in forum Permission SystemReplies: 1Last Post: 16-04-2010, 07:03 -
[Solved] Server Group Permission Values (Modify)
By PV-Patrick in forum Permission SystemReplies: 9Last Post: 02-02-2010, 00:06 -
[Bugreport] Hidden values
By Mquadrat in forum Permission SystemReplies: 3Last Post: 22-12-2009, 20:30 -
Cyts sadmin_serverSet values
By Bert in forum [TeamSpeak 2] Addons & ScriptsReplies: 3Last Post: 13-10-2006, 12:19


