Raised This Month: $ Target: $400
 0% 

Boolean Reset Only Disconnect


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 02-17-2017 , 07:33   Boolean Reset Only Disconnect
Reply With Quote #1

I have an array g_canJoin[33]

So i reset the value after client disconnect:
g_canJoin[id]= false;

Do i need to reset it also on client_connect?

I heard that sometimes when client crashes or looses internet connection there is a chance that player_disconnect event doesnt trigger after player disconnection.

This means that after one player's disconnect without player_disconnect event then boolean will stay true on connection instead of false.

Is this true? And is it safe to reset boolean value only on disconnect?

Last edited by siriusmd99; 02-17-2017 at 07:36.
siriusmd99 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 20:45.


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