Raised This Month: $99 Target: $400
 24% 

All Admin functions ceased working after today's update (8-21)


Post New Thread Reply   
 
Thread Tools Display Modes
nelioneil
AlliedModders Donor
Join Date: Sep 2005
Old 09-02-2014 , 14:58   Re: All Admin functions ceased working after today's update (8-21)
Reply With Quote #221

There is a large CSGO Update coming tonight. My suspicion is that CSGO will be next to get the new steamid format, but who knows
nelioneil is offline
DJ Data
SourceMod Donor
Join Date: Dec 2012
Location: Switzerland
Old 09-13-2014 , 17:38   Re: All Admin functions ceased working after today's update (8-21)
Reply With Quote #222

This sucks so bad. God dammit Valve.
However you can stick to the stable snapshots of SM and MM, the server wont be affected.
__________________
SourcePawn Coding Level: Novice
DJ Data is offline
nomy
Senior Member
Join Date: Dec 2009
Location: United Kingdom
Old 09-20-2015 , 01:22   Re: All Admin functions ceased working after today's update (8-21)
Reply With Quote #223

Quote:
Originally Posted by nineteeneleven View Post
PHP function to convert STEAM_X:X:XXXXXXX to new ids.

Code:
function steam3($steam2) {
        $id = explode(':', $steam2);
        $id3 = ($id[2] * 2) + $id[1];
        return '[U:1:' . $id3 . ']';
    }
Do you have function to do it the other way around? Steam3 to Steam2?

Edit: Nevermind, managed to make one

Code:
function steam2($steam3) {
    $id = explode(':', $steam3);
    $modulus = $id[2] % 2;
    $id2 = ($id[2] - $modulus) / 2;
    return 'STEAM_0:' . $modulus . ':' . $id2;
}

Last edited by nomy; 09-20-2015 at 04:16.
nomy is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:51.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode