Jump to content
  • 1

Q> Website Online Player


Question

3 answers to this question

Recommended Posts

  • 0
Posted
On 2/13/2022 at 6:28 AM, chadness said:

its only a online peak not the online players count that time the player is only 1 but it showing 2 

Change the SQL request then :

Number of players online (with shops)

 SELECT COUNT(*) as online FROM `char` WHERE `online` = 1;

Number of players online (without shops)
SELECT COUNT(*) as online FROM `char` WHERE `online` = 1 and `char`.`char_id` NOT IN (select vendings.char_id FROM `vendings` INNER JOIN `char` ON `char`.`char_id` = `vendings`.`char_id`)

Number of shops online
SELECT COUNT(*) as online FROM `char` WHERE `online` = 1 and `char`.`char_id` IN (select vendings.char_id FROM `vendings` INNER JOIN `char` ON `char`.`char_id` = `vendings`.`char_id`)

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...