farkmt2official 1
farkmt2official
mavzermete 1
mavzermete
dreamstone 1
dreamstone
Fethi Polat 1
Fethi Polat
Bvural41 1
Bvural41
Hikaye Ekle

GameServer Files Lisanslama C++

  • Konuyu başlatan Konuyu başlatan CoderPia
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 0
  • Görüntüleme Görüntüleme 57

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.



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
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst