Raised This Month: $12 Target: $400
 3% 

Player's birthday.


Post New Thread Reply   
 
Thread Tools Display Modes
rautamiekka
Veteran Member
Join Date: Jan 2009
Location: Finland
Old 08-01-2014 , 07:14   Re: Player's birthday.
Reply With Quote #41

Quote:
Originally Posted by thetwistedpanda View Post
There are dozens of solutions to this little problem, but the easiest way (while not the correct way) [...]
What's the correct ?
__________________
Links to posts I received Karma from:
Big thanks to all who gave Karma
rautamiekka is offline
Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 08-01-2014 , 07:20   Re: Player's birthday.
Reply With Quote #42

I'd use GetSteamAccountID, but it'd break compatibility completely and actually require a re-write.
__________________
thetwistedpanda is offline
rautamiekka
Veteran Member
Join Date: Jan 2009
Location: Finland
Old 08-01-2014 , 07:21   Re: Player's birthday.
Reply With Quote #43

Quote:
Originally Posted by thetwistedpanda View Post
I'd use GetSteamAccountID, but it'd break compatibility completely and actually require a re-write.
Quite bad way, IMO.
__________________
Links to posts I received Karma from:
Big thanks to all who gave Karma
rautamiekka is offline
Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 08-01-2014 , 12:25   Re: Player's birthday.
Reply With Quote #44

Quote:
Originally Posted by thetwistedpanda View Post
I'd use GetSteamAccountID, but it'd break compatibility completely and actually require a re-write.
The "correct" way to do this while still using STEAM_-esque IDs is to only compare from character 8 onwards.

If the string "auth" contains "STEAM_0:0:23071901", then auth[8] will be "0:23071901", which is actually how SourceMod internally stores admin Steam IDs.
__________________
Dr. McKay is offline
rautamiekka
Veteran Member
Join Date: Jan 2009
Location: Finland
Old 08-02-2014 , 20:22   Re: Player's birthday.
Reply With Quote #45

Plugin doesn't work on CS:GO:
Code:
01:13:14   Filename: birthday1.1.smx
           Load error: Native "BfWriteByte" was not found
           File info: (title "Player's birthday") (version "1.1")
           File URL: none
https://forums.alliedmods.net/showthread.php?t=208145
__________________
Links to posts I received Karma from:
Big thanks to all who gave Karma
rautamiekka is offline
Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
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 18:44.


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