HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!
Selamlar,
GameServer Lisanslamak için ufak bir kod paylaşıyorum.
GameServer Lisanslamak için ufak bir kod paylaşıyorum.
Kod:
// License System Start
bool IsValidLicense = false; std::string LicensedIPAddresses = "127.0.0.1"; std::string ServerIPAddress = "0.0.0.0"; foreach_stlmap_nolock (itr,m_ServerArray) { if (LicensedIPAddresses.find(itr->second->strServerIP) == std::string::npos) continue; ServerIPAddress = itr->second->strServerIP; IsValidLicense = true; break; } if (!IsValidLicense) { printf("ERROR:IP Address is not have a license.\n"); return false; }
// License System End
