Raised This Month: $ Target: $400
 0% 

If player is alive, it means, that he is connected to server?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 01-11-2015 , 10:29   Re: If player is alive, it means, that he is connected to server?
Reply With Quote #9

very interesting question
the conclusion is that if is_user_alive returns 0 it does not necessarily mean he's connected to the server
you can go ahead and continue a function if(is_user_alive)
but in the else{ you'll have to do an is_user_connected check}

by means of optimization, theoretically , this is the best way, other than first checking if he's connected or not and then the alive or not
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
aron9forever 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 15:19.


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