Scracky1
New Member
- Joined
- Oct 2, 2017
- Messages
- 15
- Solutions
- 1
- Reaction score
- 0
So i got an anoying problem that i cant figure out how to solve.
Im using Znote's ACC and the online counter is acting up.
Example: Test is logged in on the server, he is alone. The online counter says there are 2 online.
When clicking the link to see wich ppl are online it only shows Test, wich is correct.
So i checked Mysql and found out that when Test is logged in something else is also logged. (See attached .jpg)
The online counter counts this ghost as online aswell.
Any idea what this 'ghost" is? If it's supose to be there, how do i make the online counter not count it?
Thanks <3
So i found out what this 'ghost' is. It's what outfit to show on the website. Now, how do make it not count the outfit as a player?
Can i for an expample just do some math line and divide this by 2?
Or make it see if it's below id "10000" then count it, otherwise not?
Im using Znote's ACC and the online counter is acting up.
Example: Test is logged in on the server, he is alone. The online counter says there are 2 online.
When clicking the link to see wich ppl are online it only shows Test, wich is correct.
So i checked Mysql and found out that when Test is logged in something else is also logged. (See attached .jpg)
The online counter counts this ghost as online aswell.
Any idea what this 'ghost" is? If it's supose to be there, how do i make the online counter not count it?
Thanks <3
So i found out what this 'ghost' is. It's what outfit to show on the website. Now, how do make it not count the outfit as a player?
Can i for an expample just do some math line and divide this by 2?
Or make it see if it's below id "10000" then count it, otherwise not?
Code:
<?php echo user_count_online(); ?></a>
Attachments
-
bug.jpg36.4 KB · Views: 22 · VirusTotal
Last edited by a moderator: