Raised This Month: $ Target: $400
 0% 

Handle disconected


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 09-14-2013 , 09:20   Re: Handle disconected
Reply With Quote #8

Code:
set_task(60.0*5, "prune", _, szAuthid, strlen(szAuthid)); public prune(szAuthid[]) {     TrieDeleteKey(g_tPlayersLastConnection, szAuthid); }

EDIT: If this is used you don't actually have to check the value of the trie cell. You also don't need to set a time for it. If it exists with any value the reconnect was within 5 minutes.
__________________

Last edited by Black Rose; 09-14-2013 at 12:25.
Black Rose is offline
 



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 19:10.


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