AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Convert STEAMID to Steam Community ID (https://forums.alliedmods.net/showthread.php?t=75694)

xPaw 08-10-2008 13:02

Convert STEAMID to Steam Community ID
 
i saw tutor to the sourcemod, maybe someone can do this for amxx ? +karma from me :)

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

Arkshine 08-10-2008 19:38

Re: Convert STEAMID to Steam Community ID
 
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.

xPaw 08-11-2008 05:16

Re: Convert STEAMID to Steam Community ID
 
okay thanks

endeffects 12-21-2008 09:31

Re: Convert STEAMID to Steam Community ID
 
i'm looking for something like this too.
does anybody have a working code snipe for it?

Spunky 12-21-2008 09:59

Re: Convert STEAMID to Steam Community ID
 
Quote:

Originally Posted by endeffects (Post 730836)
i'm looking for something like this too.
does anybody have a working code snipe for it?

Quote:

Originally Posted by arkshine (Post 667787)
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.

endeffects 12-21-2008 10:11

Re: Convert STEAMID to Steam Community ID
 
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.

Spunky 12-21-2008 10:37

Re: Convert STEAMID to Steam Community ID
 
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.

Arkshine 12-21-2008 10:50

Re: Convert STEAMID to Steam Community ID
 
Danielkza has already done such plugin using "string-based math like in PHP's BCMath" : http://forums.alliedmods.net/showthread.php?t=77361

endeffects 12-21-2008 11:01

Re: Convert STEAMID to Steam Community ID
 
oh wow thanks alot arkshine, i was crawling the forum
but did not found it.

@Spunky .. stop whining..

Spunky 12-21-2008 11:04

Re: Convert STEAMID to Steam Community ID
 
Who's whining? You were being a hypocrite.

danielkza comes up with all sorts of neat things. :o


All times are GMT -4. The time now is 03:09.

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