Raised This Month: $ Target: $400
 0% 

[Question] Keyvalues GRRR!


Post New Thread Reply   
 
Thread Tools Display Modes
SamuraiBarbi
Senior Member
Join Date: Aug 2006
Location: United States
Old 09-23-2007 , 15:31   Re: [Question] Keyvalues GRRR!
Reply With Quote #11

Hmmmm. What does that mean should I do?
SamuraiBarbi is offline
Send a message via AIM to SamuraiBarbi Send a message via MSN to SamuraiBarbi Send a message via Yahoo to SamuraiBarbi
BAILOPAN
Join Date: Jan 2004
Old 09-23-2007 , 16:40   Re: [Question] Keyvalues GRRR!
Reply With Quote #12

GetClientOfUserId(), use client indexes instead. There's not really a good reason to write userids to a file for temporary storage. Those user ids aren't identifying like steamids, they're just serial numbers for connections.

If you want to keep track of clients in-game, use arrays with client indexes.

If you want to keep track of clients out of game, use Steam IDs.
__________________
egg
BAILOPAN is offline
SamuraiBarbi
Senior Member
Join Date: Aug 2006
Location: United States
Old 09-23-2007 , 16:52   Re: [Question] Keyvalues GRRR!
Reply With Quote #13

Ah, ok I think I get it now. Yeah storing the client indexes into arrays is much easier than trying to keep track of them in a keyvalue file. Thanks guys, this was another cool learning experience!
SamuraiBarbi is offline
Send a message via AIM to SamuraiBarbi Send a message via MSN to SamuraiBarbi Send a message via Yahoo to SamuraiBarbi
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 15:56.


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