Raised This Month: $ Target: $400
 0% 

Convert STEAMID to Steam Community ID


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-10-2008 , 13:02   Convert STEAMID to Steam Community ID
Reply With Quote #1

i saw tutor to the sourcemod, maybe someone can do this for amxx ? +karma from me

http://forums.alliedmods.net/showthread.php?t=60899
__________________

Last edited by xPaw; 08-10-2008 at 13:48.
xPaw is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-10-2008 , 19:38   Re: Convert STEAMID to Steam Community ID
Reply With Quote #2

That's not possible because '76561197960265728' is a long data-type which is a 64-bit signed two's complement integer and pawn doesn't support that. :-(

So it not possible to play with such large number. You can't use above 2^31, so -2,147,483,648 <-> 2,147,483,648.
__________________

Last edited by Arkshine; 10-22-2008 at 12:00.
Arkshine is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-11-2008 , 05:16   Re: Convert STEAMID to Steam Community ID
Reply With Quote #3

okay thanks
__________________
xPaw is offline
endeffects
Senior Member
Join Date: Nov 2007
Old 12-21-2008 , 09:31   Re: Convert STEAMID to Steam Community ID
Reply With Quote #4

i'm looking for something like this too.
does anybody have a working code snipe for it?
__________________
Get rid of all these fake, spam, redirect servers
on your steam server list!
endeffects is offline
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 12-21-2008 , 09:59   Re: Convert STEAMID to Steam Community ID
Reply With Quote #5

Quote:
Originally Posted by endeffects View Post
i'm looking for something like this too.
does anybody have a working code snipe for it?
Quote:
Originally Posted by arkshine View Post
That's not possible because '76561197960265728' is a long data-type which is a 64-bit signed two's complement integer and pawn doesn't support that. :-(

So it not possible to play with such large number. You can't use above 2^31, so -2,147,483,648 <-> 2,147,483,648.
Learn to read before posting.
Spunky is offline
Send a message via AIM to Spunky
endeffects
Senior Member
Join Date: Nov 2007
Old 12-21-2008 , 10:11   Re: Convert STEAMID to Steam Community ID
Reply With Quote #6

before you teach somebody about such things you
probably think first next time! it should be no problem to split
the 64bit string and doing some seperated calculations
to join the sums into one string.
__________________
Get rid of all these fake, spam, redirect servers
on your steam server list!
endeffects is offline
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 12-21-2008 , 10:37   Re: Convert STEAMID to Steam Community ID
Reply With Quote #7

Then educate us. Show us how you, in all of your wisdom, would do this. Because as I recall, you're the one asking for code snippets, not him.
Spunky is offline
Send a message via AIM to Spunky
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-21-2008 , 10:50   Re: Convert STEAMID to Steam Community ID
Reply With Quote #8

Danielkza has already done such plugin using "string-based math like in PHP's BCMath" : http://forums.alliedmods.net/showthread.php?t=77361
__________________
Arkshine is offline
endeffects
Senior Member
Join Date: Nov 2007
Old 12-21-2008 , 11:01   Re: Convert STEAMID to Steam Community ID
Reply With Quote #9

oh wow thanks alot arkshine, i was crawling the forum
but did not found it.

@Spunky .. stop whining..
__________________
Get rid of all these fake, spam, redirect servers
on your steam server list!
endeffects is offline
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 12-21-2008 , 11:04   Re: Convert STEAMID to Steam Community ID
Reply With Quote #10

Who's whining? You were being a hypocrite.

danielkza comes up with all sorts of neat things.
Spunky is offline
Send a message via AIM to Spunky
Reply



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 03:09.


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