المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : معلش يا رايدر حل للمشكلة دى لان السيرفر مش عايز يشتغل


nova
2019-12-02, 02:49 PM
بشغل السيرفر دلوقتى بيجيلى ايرور ف سطر 82 ف البرفكشن واللعبة مش بتفتح


عفواً لايمكن عرض الروابط في الإرشيف

Tefa
2019-12-02, 03:21 PM
بدل الي عندك public void UpdateBestPlayer ب دي
public void UpdateBestPlayer()
{
Stuff = new Dictionary<string, uint>();
BestPlayer = Rayzo.Network.GamePackets.MsgUserAbilityScore.Rank ingList.OrderByDescending(i => i.Prestige).ThenByDescending(i => i.Level).ThenBy(i => i.UID).FirstOrDefault();
if (BestPlayer == null) return;
using (var cmd = new MySqlCommand(MySqlCommandType.SELECT).Select("items").Where("EntityID", BestPlayer.UID).And("Position", 0, true))
using (var reader = new MySqlReader(cmd))
{
while (reader.Read())
{
if (reader.ReadByte("Position") == 5) Stuff.Add(GetPositionName(5), reader.ReadUInt32("ID"));
if (reader.ReadByte("Position") == 9) if (!Stuff.ContainsKey(GetPositionName(9))) Stuff.Add(GetPositionName(9), reader.ReadUInt32("ID"));
if (reader.ReadByte("Position") == 4) Stuff.Add(GetPositionName(4), reader.ReadUInt32("ID"));
if (reader.ReadByte("Position") == 19)
{
if (!Stuff.ContainsKey(GetPositionName(19)))
Stuff.Add(GetPositionName(19), reader.ReadUInt32("ID"));
if (!Stuff.ContainsKey(GetPositionName(255)))
Stuff.Add(GetPositionName(255), reader.ReadByte("Plus"));
}
}
if (!Stuff.Keys.Contains("MountArmor"))
{
using (var cmd2 = new MySqlCommand(MySqlCommandType.SELECT).Select("items").Where("EntityID", BestPlayer.UID).And("Position", 0, true))
using (var reader2 = new MySqlReader(cmd2))
{
while (reader2.Read())
{
}
}
}
}
}

nova
2019-12-02, 03:28 PM
بدل الي عندك public void updatebestplayer ب دي
public void updatebestplayer()
{
stuff = new dictionary<string, uint>();
bestplayer = rayzo.network.gamepackets.msguserabilityscore.rank inglist.orderbydescending(i => i.prestige).thenbydescending(i => i.level).thenby(i => i.uid).firstordefault();
if (bestplayer == null) return;
using (var cmd = new mysqlcommand(mysqlcommandtype.select).select("items").where("entityid", bestplayer.uid).and("position", 0, true))
using (var reader = new mysqlreader(cmd))
{
while (reader.read())
{
if (reader.readbyte("position") == 5) stuff.add(getpositionname(5), reader.readuint32("id"));
if (reader.readbyte("position") == 9) if (!stuff.containskey(getpositionname(9))) stuff.add(getpositionname(9), reader.readuint32("id"));
if (reader.readbyte("position") == 4) stuff.add(getpositionname(4), reader.readuint32("id"));
if (reader.readbyte("position") == 19)
{
if (!stuff.containskey(getpositionname(19)))
stuff.add(getpositionname(19), reader.readuint32("id"));
if (!stuff.containskey(getpositionname(255)))
stuff.add(getpositionname(255), reader.readbyte("plus"));
}
}
if (!stuff.keys.contains("mountarmor"))
{
using (var cmd2 = new mysqlcommand(mysqlcommandtype.select).select("items").where("entityid", bestplayer.uid).and("position", 0, true))
using (var reader2 = new mysqlreader(cmd2))
{
while (reader2.read())
{
}
}
}
}
}

ربنا يزيدك من علمه زى ما بتساعد الناس ربنا هيساعدك شكرا يا عالمى