Neler yeni
KoBulten - Knight Online Topluluğu

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Hikaye

Görüntülenecek hikaye öğesi yok. Bir hikaye oluşturalım. Utangaç olmayın, bu sizi takipçilerinize gerçekten sevdirecek.

Oto Mesaj | Her Oyuncuya Girişte Mesaj Gönderebilirsiniz

ADMİN 

Game Master Booster
Admin
KB Moderator
KB Server Sahibi
KB Reklam Editörü
KB Grafiker
KB Kral Üye
KB Kıdemli Üye
KB Acemi Üye
Top Poster Of Month
Katılım
22 Temmuz 2023
Mesajlar
1,028
Tepkime puanı
2,003
Aktiflik Süresi
19s 54dk
Puanları
1,112
Konum
İzmir
Web sitesi
www.kobulten.com
Merhabalar arkadaşlar,

İsteği olan arkadaşlar için paylaşıyorum, güle güle kullanın.

1. Src nize gelin ve user.h açın voidlerin altına şunu ekleyin;

void NoticeGiris();

2. Src projenizi açın Gameserver gelin Source Filesiçine GirisNotice.cpp oluşturun ve içine şunları ekleyin;
Not:Baştaki includeleri kendi src nize göre ayarlayın.

#include "stdafx.h"
#include <algorithm>
#include "../shared/DateTime.h"

#define INI_SECTION_START '['
#define INI_SECTION_END ']'
#define INI_KEY_SEPARATOR '='
#define INI_NEWLINE "\n"

using namespace std;

/*user.cpp Bağlı 2 bölüm Taşındı*/

class CIni
{
private:
std::string m_szFileName;
// Defines key/value pairs within sections
typedef std::map<std::string, std::string> ConfigEntryMap;

// Defines the sections containing the key/value pairs
typedef std::map<std::string, ConfigEntryMap> ConfigMap;

ConfigMap m_configMap;

public:
CIni(const char *lpFilename);

bool Load(const char * lpFileName = nullptr);
void Save(const char * lpFileName = nullptr);

int GetInt(const char* lpAppName, const char* lpKeyName, const int nDefault);
bool GetBool(const char* lpAppName, const char* lpKeyName, const bool bDefault);
void GetString(const char* lpAppName, const char* lpKeyName, const char* lpDefault, std::string & lpOutString, bool bAllowEmptyStrings = true);
int SetInt(const char* lpAppName, const char* lpKeyName, const int nDefault);
int SetString(const char* lpAppName, const char* lpKeyName, const char* lpDefault);
};

void CUser::NoticeGiris()
{
DateTime time;
std::string Zaman;
SendChat(ChatType::pRIVATE_CHAT, string_format("Herhangi bir sorununuz varsa Yöneticilerimize iletebilirsiniz.www.ko-pvp.com", m_strUserID.c_str()), "[GAMING]Info");
SendChat(ChatType::pRIVATE_CHAT, string_format("%s oyuna hoşgeldin , keyifli vakitler geçirmen dileğiyle.", m_strUserID.c_str()), "[Auto Message]");
SendChat(ChatType::pUBLIC_CHAT, "KO-PVP v2117");
SendChat(ChatType::pUBLIC_CHAT, string_format("Server Time : %04d-%02d-%02d %02d:%02d", time.GetYear(), time.GetMonth(), time.GetDay(), time.GetHour(), time.GetMinute()));
}

3. User.cpp için ve V3_RequestStart(); Altına şunu ekleyin;

NoticeGiris();
 

Konuyu görüntüleyenler

  • Üst