B 1
berione65
sen272 1
sen272
Mt2Hizmet 1
Mt2Hizmet
C 1
chengdu
xranzei 1
xranzei
zendor2 1
zendor2
Bvural41 1
Bvural41
Hikaye Ekle
Reklam vermek için turkmmo@gmail.com
Kaynak ikonu

Multi Language System 2020-06-28

indirmek için izniniz yok
  • Konuyu başlatan Konuyu başlatan Rakancito
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 112
  • Görüntüleme Görüntüleme 25K
5.00 yıldız(lar) 1 Değerlendirme Değerlendirenler

ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ HEMEN TIKLA!

@krokogames
//Svn/Server/game/src/priv_manager.cpp
// 1.0.) Find this:
Kod:
static const char * GetEmpireName(int priv)
{
    return LC_TEXT(c_apszEmpireNames[priv]);
}

static const char * GetPrivName(int priv)
{
    return LC_TEXT(c_apszPrivNames[priv]);
}

// 1.1.) Replace with this:
Kod:
static const char * GetEmpireName(int priv)
{
    return LC_TEXT(TRANSLATE_LANGUAGE, c_apszEmpireNames[priv]);
}

static const char * GetPrivName(int priv)
{
    return LC_TEXT(TRANSLATE_LANGUAGE, c_apszPrivNames[priv]);
}

//Svn/Server/game/src/start_position.h
// 2.0.) Find this:
Kod:
inline const char* EMPIRE_NAME( BYTE e)
{
    return LC_TEXT(g_nation_name[e]);
}

// 2.1.) Replace with this:
Kod:
inline const char* EMPIRE_NAME( BYTE e)
{
    return LC_TEXT(TRANSLATE_LANGUAGE, g_nation_name[e]);
}


//Svn/Server/game/src/char_item.cpp
// 3.0.) Find this:
Kod:
#define VERIFY_MSG(exp, msg)  \
    if (true == (exp)) { \
            ChatPacket(CHAT_TYPE_INFO, LC_TEXT(msg)); \
            return false; \
    }

// 3.1.) Replace with this:
Kod:
#define VERIFY_MSG(exp, msg)  \
    if (true == (exp)) { \
            ChatPacket(CHAT_TYPE_INFO, LC_TEXT(TRANSLATE_LANGUAGE,msg)); \
            return false; \
    }


thanks now

compiling BattleArena.cpp
In file included from BattleArena.cpp:5:
./start_position.h:16:40: error: too many arguments provided to function-like
macro invocation
return LC_TEXT(TRANSLATE_LANGUAGE, g_nation_name[e]);
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
In file included from BattleArena.cpp:5:
./start_position.h:16:12: error: use of undeclared identifier 'LC_TEXT'
return LC_TEXT(TRANSLATE_LANGUAGE, g_nation_name[e]);
^
BattleArena.cpp:103:50: error: too many arguments provided to function-like
macro invocation
...BroadcastNotice(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:103:22: error: use of undeclared identifier 'LC_TEXT'
BroadcastNotice(LC_TEXT(TRANSLAT...
^
BattleArena.cpp:110:50: error: too many arguments provided to function-like
macro invocation
...BroadcastNotice(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:110:22: error: use of undeclared identifier 'LC_TEXT'
BroadcastNotice(LC_TEXT(TRANSLAT...
^
BattleArena.cpp:120:50: error: too many arguments provided to function-like
macro invocation
...BroadcastNotice(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:120:22: error: use of undeclared identifier 'LC_TEXT'
BroadcastNotice(LC_TEXT(TRANSLAT...
^
BattleArena.cpp:142:49: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "<C1><U+07FE><D3> <C1><A6><B4>ܿ...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:142:21: error: use of undeclared identifier 'LC_TEXT'
SendNoticeMap(LC_TEXT(TR...
^
BattleArena.cpp:151:50: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9><C0>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:151:22: error: use of undeclared identifier 'LC_TEXT'
SendNoticeMap(LC...
^
BattleArena.cpp:164:48: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9><C0>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:164:20: error: use of undeclared identifier 'LC_TEXT'
SendNoticeMap(LC_TEXT(TRANSLATE_...
^
BattleArena.cpp:165:48: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "<C0><E1><BD><C3> <C8><C4> ...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:165:20: error: use of undeclared identifier 'LC_TEXT'
SendNoticeMap(LC_TEXT(TRANSLATE_...
^
BattleArena.cpp:190:48: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9><C0>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:190:20: error: use of undeclared identifier 'LC_TEXT'
SendNoticeMap(LC_TEXT(TRANSLATE_...
^
BattleArena.cpp:191:48: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "30<BA><D0> <B3><BB><B7><CE> ...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
 
thanks now

compiling BattleArena.cpp
In file included from BattleArena.cpp:5:
./start_position.h:16:40: error: too many arguments provided to function-like
macro invocation
return LC_TEXT(TRANSLATE_LANGUAGE, g_nation_name[e]);
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
In file included from BattleArena.cpp:5:
./start_position.h:16:12: error: use of undeclared identifier 'LC_TEXT'
return LC_TEXT(TRANSLATE_LANGUAGE, g_nation_name[e]);
^
BattleArena.cpp:103:50: error: too many arguments provided to function-like
macro invocation
...BroadcastNotice(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:103:22: error: use of undeclared identifier 'LC_TEXT'
BroadcastNotice(LC_TEXT(TRANSLAT...
^
BattleArena.cpp:110:50: error: too many arguments provided to function-like
macro invocation
...BroadcastNotice(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:110:22: error: use of undeclared identifier 'LC_TEXT'
BroadcastNotice(LC_TEXT(TRANSLAT...
^
BattleArena.cpp:120:50: error: too many arguments provided to function-like
macro invocation
...BroadcastNotice(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:120:22: error: use of undeclared identifier 'LC_TEXT'
BroadcastNotice(LC_TEXT(TRANSLAT...
^
BattleArena.cpp:142:49: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "<C1><U+07FE><D3> <C1><A6><B4>ܿ...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:142:21: error: use of undeclared identifier 'LC_TEXT'
SendNoticeMap(LC_TEXT(TR...
^
BattleArena.cpp:151:50: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9><C0>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:151:22: error: use of undeclared identifier 'LC_TEXT'
SendNoticeMap(LC...
^
BattleArena.cpp:164:48: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9><C0>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:164:20: error: use of undeclared identifier 'LC_TEXT'
SendNoticeMap(LC_TEXT(TRANSLATE_...
^
BattleArena.cpp:165:48: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "<C0><E1><BD><C3> <C8><C4> ...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:165:20: error: use of undeclared identifier 'LC_TEXT'
SendNoticeMap(LC_TEXT(TRANSLATE_...
^
BattleArena.cpp:190:48: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9><C0>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:190:20: error: use of undeclared identifier 'LC_TEXT'
SendNoticeMap(LC_TEXT(TRANSLATE_...
^
BattleArena.cpp:191:48: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "30<BA><D0> <B3><BB><B7><CE> ...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Replace your locale.cpp and h to in @Rakancito archives
 
@krokogames
and dont forget this:
Svn/server/game/src/cmd_gm.cpp
1.) Find this:
Kod:
           if (iByEmpire)
                ch->ChatPacket(CHAT_TYPE_INFO, "%s for empire : %d", LC_TEXT(c_apszPrivNames[i]), iByEmpire);

            if (iByGuild)
                ch->ChatPacket(CHAT_TYPE_INFO, "%s for guild : %d", LC_TEXT(c_apszPrivNames[i]), iByGuild);

            if (iByPlayer)
                ch->ChatPacket(CHAT_TYPE_INFO, "%s for player : %d", LC_TEXT(c_apszPrivNames[i]), iByPlayer);

2.) Replace with this:
Kod:
           if (iByEmpire)
                ch->ChatPacket(CHAT_TYPE_INFO, "%s for empire : %d", LC_TEXT(TRANSLATE_LANGUAGE, c_apszPrivNames[i]), iByEmpire);

            if (iByGuild)
                ch->ChatPacket(CHAT_TYPE_INFO, "%s for guild : %d", LC_TEXT(TRANSLATE_LANGUAGE, c_apszPrivNames[i]), iByGuild);

            if (iByPlayer)
                ch->ChatPacket(CHAT_TYPE_INFO, "%s for player : %d", LC_TEXT(TRANSLATE_LANGUAGE, c_apszPrivNames[i]), iByPlayer);
 
[URL unfurl = "true"] [/ URL]



hello i have this error can you please help me? i uploaded the 2 sources files that have this error ty
 
Son düzenleme:

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

Geri
Üst