[Solved] Check if user is Connected
what is the best way ?
PHP Code:
PHP Code:
|
Re: Check if user is Connected
How often are you checking it?
|
Re: Check if user is Connected
what u mean with often ?
|
Re: Check if user is Connected
How much do you check this function in your plugin.....
|
Re: Check if user is Connected
If you are checking if user is connected for example when you execute command where player is a target then using is_user_connected(id) is fine, but if you loop through all players in prethink then caching is_user_connected is better however your method is not the best. You should use something like this:
PHP Code:
|
Re: Check if user is Connected
i check if is user connected like a billion of times in my code, everything is checked :/
bcoz i got too many players count, tasks, etcetera and btw, there is another way without bitsum ? |
Re: Check if user is Connected
Quote:
|
Re: Check if user is Connected
but it really worth change is_user_connected( index ) to bitsums ? just wondering
|
Re: Check if user is Connected
You could use an array, but a bitsum would be more efficient.
|
Re: Check if user is Connected
Thanks. Solved ;*
|
| All times are GMT -4. The time now is 11:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.