Online statistics

jeronemo

New Member
Apr 13, 2020
4
0
1
24
sorry my bad english i dont speak english
i speak russian
-----

When there are players in the game, the site writes online players 0
----
Когда в игре бывают игроки - на сайте пишет онлайн игроков 0
 

Pandarana

New Member
Apr 18, 2020
8
0
1
31
ok, i suggest you to create a bat file with this code:

C:\xampp\php\php.exe C:\xampp\htdocs\webengineroot\includes/cron/cron.php

and create schedule task in windows.

i give you an example with mi configuration(i use a linux system but i rebuild the example for xammp)


Example:


Create BAT file [WebEngine_Cron.bat]

Souce code of bat file

C:\xampp\php\php.exe C:\xampp\htdocs\WebEngine\includes\cron\cron.php

To schedule a task

Click on start > All Programs > Accessories > System Tools > Scheduled Tasks

Or you can go directly
Control Panel > Scheduled Tasks

Right click in the folder
New > Schedule Task

Give appropriate name to the Task.
In the RUN text field… Type the complete path of the WebEngine_Cron.bat file

in my case it is
C:\xampp\htdocs\WebEngine\WebEngine_Cron.bat

Set the schedule of the job, you can use advanced button if required.


i hope it help you :)