venlik ayarındanmı derlemedenmi çözmüştüm tam hatırlamıyorum
bot olayında Sleep Fonksiyonu Kullandım Suan Sorun Gözükmüyor Release Yaptığımda Ama 5 dk çıkan 1 saat sonra aynı hatayı veriyor.
Botlar Yürümüyor atak yapmıyor
m_BotPKSpawnCounter++;
if (m_BotPKSpawnCounter >= 15) // 2 dakikada bir tetiklenir
{
printf("BOT PK spawn edildi (15 dakikada bir).\n");
LoadServerStartBotPK();
m_BotPKSpawnCounter = 0; // Sayaç sıfırlanır
}
bool CGameServerDlg::LoadServerStartBotPK()
{
for (int crclassska = 1; crclassska <= 4; crclassska++)
{
for (int i = 0; i < 3; i++)
{
float BonX = myrand(1, 15) * 1.0f;
float BonZ = myrand(1, 15) * 1.0f;
float GetX = 0.0f;
float GetY = 0.0f;
float GetZ = 0.0f;
uint8 crminlevel = 1;
uint8 crnationka = 1;
g_pMain->SpawnEventBotPk(16, 71, GetX + BonX, GetY, GetZ + BonZ, crminlevel, crnationka, crclassska, nullptr, true);
//printf("1...\n");
}
}
for (int crclasssel = 1; crclasssel <= 4; crclasssel++)
{
for (int i = 0; i < 3; i++)
{
float BonX = myrand(1, 15) * 1.0f;
float BonZ = myrand(1, 15) * 1.0f;
float GetX = 0.0f;
float GetY = 0.0f;
float GetZ = 0.0f;
uint8 crminlevel = 1;
uint8 crnationel = 2;
g_pMain->SpawnEventBotPk(16, 71, GetX + BonX, GetY, GetZ + BonZ, crminlevel, crnationel, crclasssel, nullptr, true);
//printf("2...\n");
}
}
return true;
}
fonksiyonda sorun mu var