| 
                     | 
                
            
        
			 أفضل جواب - كتبه Tefa
		 | 
	
| 
			problem from loader u can buy another loader or try this https://code.vpscairo.com/showthread...E3%D4%DF%E1%C9 info:this may not open from first time u will need to close game page and reopen it if it did not open  | 
	
		
	 
    public static bool Save(bool Exit = false)
        {
            try
            {
                Database.JiangHu.SaveJiangHu();
                using (var conn = Database.DataHolder.MySqlConnection)
                {
                    conn.Open();
                    foreach (Client.GameState client in Program.Values)
                    {
                        Database.EntityTable.SaveEntity(client);
                        Database.SkillTable.SaveProficiencies(client);
                        Database.ArenaTable.SaveArenaStatistics(client.ArenaStatistic);
                        Database.TeamArenaTable.SaveArenaStatistics(client.TeamArenaStatistic);
                    }
                }
                Database.InnerPowerTable.Save();
                Database.Flowers.SaveFlowers();
                AuctionBase.Save();
                Game.ClanWarArena.Save();
                using (MySqlCommand cmd = new MySqlCommand(MySqlCommandType.SELECT).Select("configuration").Where("Server", Constants.ServerName))
                {
                    using (MySqlReader r = new MySqlReader(cmd))
                    {
                        if (r.Read())
                        {
                            new Database.MySqlCommand(Database.MySqlCommandType.UPDATE).Update("configuration").Set("EntityID", EntityUID.Now).Set("ServerKingdom", Kernel.ServerKingdom).Set("GuildID", Game.ConquerStructures.Society.Guild.GuildCounter.Now).Where("Server", Constants.ServerName).Execute();
                            if (r.ReadByte("LastDailySignReset") != DateTime.Now.Month) MsgSignIn.Reset();
                        }
                    }
                }
                using (var cmd = new MySqlCommand(MySqlCommandType.UPDATE).Update("configuration"))
                    cmd.Set("LastDailySignReset", DateTime.Now.Month).Execute();
                Console.WriteLine("Saving cmd Done.");
                if (Exit)
                    Environment.Exit(0);
            }
            catch (Exception e)
            {
                Console.WriteLine(e.ToString());
                return false;
            }
            return true;
        } 
   
	
		
		
		
		
	 
 #region Inner
            if (!InnerPower.InnerPowerPolle.TryGetValue(client.Player.UID, out client.Player.InnerPower))
            {
                client.Player.InnerPower = new InnerPower(client.Player.Name, client.Player.UID);
                Database.InnerPowerTable.New(client);
            }
            client.Player.InnerPower.UpdateStatus();
            client.Player.InnerPower.AddPotency(null, client, 0);
            client.LoadItemStats();
            #endregion 
   
	
		
		
		
		
	 
 InnerPowerTable.LoadDBInformation();
                InnerPowerTable.Load(); 
   
	
		
		
		
		
	 
case ActionID.UpdateGong 
   
	
		
		
		
		
	 
case ActionID.UpdateGong:
                    {
                        Database.InnerPowerTable.Stage DBStage = null;
                        Database.InnerPowerTable.Stage.NeiGong DBGong = null;
                        if (Database.InnerPowerTable.GetDBInfo(dwparam, out DBStage, out DBGong))
                        {
                            InnerPower.Stage stage = null;
                            InnerPower.Stage.NeiGong gong = null;
                            if (client.Player.InnerPower.TryGetStageAndGong((byte)dwparam, out stage, out gong))
                            {
                                if (stage.UnLocked && gong.Unlocked && gong.level < DBGong.MaxLevel)
                                {
                                    int potency_cost = (int)DBGong.ProgressNeiGongValue[Math.Min(gong.level, (int)(DBGong.ProgressNeiGongValue.Length - 1))];
                                    if (client.Player.InnerPower.Potency >= potency_cost)
                                    {
                                        client.Player.InnerPower.AddPotency(stream, client, -potency_cost);
                                        gong.level += 1;
                                      
                                        gong.Score = (byte)Math.Ceiling(((float)((float)100 / (float)DBGong.MaxLevel) * (float)gong.level));
                                        gong.Complete = gong.level == DBGong.MaxLevel;
                                        client.Send(stream.InnerPowerGui(client.Player.InnerPower.GetNeiGongs()));
                                        client.Send(stream.InnerPowerStageInfo(InnerPowerStage.ActionID.UpdateStage, client.Player.UID, stage));
                                        client.Send(stream.InnerPowerStageInfo(InnerPowerStage.ActionID.UpdateScore, client.Player.UID, stage));
                                        client.Player.InnerPower.UpdateStatus();
                                        client.LoadItemStats();
                                        InnerPower.InnerPowerRank.UpdateRank(client.Player.InnerPower);
                                    }
                                }
                            }
                        }
                        break;
                    } 
   
	
		
		
		| الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
| أدوات الموضوع | |
                
  | 
        
| الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة | 
| دوره الكودر المحترف (الدرس الاول -عمل السيرفر + البرامج) | Users | تطوير سيرفرات كونكر | 8 | 2024-06-16 06:05 AM | 
| مشكلة غريبه الانر بور مش بيعمل Save | ahmedfathy | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2020-05-04 05:02 PM | 
| حل مشكلة الانر بور برستر السيرفر بيترستر | Tefa | تطوير سيرفرات كونكر | 3 | 2019-10-26 01:13 AM | 
| يارجاله دلؤتي restart مش شغال في السيرفر عندي ولما بقفل القنصل الانر بور بيتمسح | ahmedfathy | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2019-10-25 01:43 PM | 
| اعمل شفرات للاعبين و للـناس الـvip زى السيرفر الاول عـ العالـم | Ahmeed Sheeko | تطوير سيرفرات كونكر | 3 | 2019-08-01 10:08 PM |