1. Tell me why after one loop Repeat the next does not change anything in the database.
    The first question is does and the other does not.

    In the console does not have any errors.

    Code:
            void Init()
            {
                CheckCfg("adres", ref adres);
                CheckCfg("port", ref port);
                CheckCfg("db", ref db);
                CheckCfg("login", ref login);
                CheckCfg("passworld", ref passworld);
                CheckCfg("id", ref id);
                CheckCfg("interval", ref interval);
                SaveConfig();            int online = 20;            timer.Repeat(interval, 0, () =>
                {
                    online = GameManager.Instance.GetPlayerCount();
                    string count = online.ToString();                DateTime d = DateTime.Now;
                    string date = String.Format("{2:0000}-{0:00}-{1:00} {3:00}:{4:00}:{5:00}", d.Month, d.Day, d.Year, d.Hour, d.Minute, d.Second);                var sql = Core.Database.Sql.Builder.Append(@"CREATE TABLE IF NOT EXISTS online (
                                     id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
                                     online int,
                                     data datetime
                                     );
                                    update online set online="+count+" where id="+ id + "; update online set data='"+date+"' where id="+ id + ";"
                        );                _mySql.Insert(sql, _mySqlConnection);            });        }
     
  2. Wulf

    Wulf Community Admin

    Are you still having the issue? You had it marked as Solved.
     
  3. I forgot about this post.