Best Studio 1
Best Studio
Bodyguardd 1
Bodyguardd
kralhakan2009 1
kralhakan2009
Vahsi Uzman 1
Vahsi Uzman
berzahx 1
berzahx
VictoryasHD 1
VictoryasHD
noisiv 1
noisiv
Manwe Work 1
Manwe Work
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

Türkiye'nin ilk Cross-Platform OldSchool MOBİL & PC 1-99 Sunucusu Lamira2 6 Kasım'da Açılıyor! Büyük Açılışı Kaçırma HEMEN TIKLA!

Any idea to Client crash? Without any log or smth like this. Nothing on serverside and nothing on client side. (Tried with debug, but nothing).
When i move or smth else after around 5-10 sec the client crash.
syserr ?
 
Kod:
#ifdef ENABLE_MULTILANGUAGE
    int getn_lang(lua_State* L)
    {
        LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();

        if (ch)
        {
            lua_pushnumber(L, ch->GetLang());
        }
        else
        {
            lua_pushnumber(L, 0);
        }

        return 1;
    }
    int get_lang(lua_State* L)
    {
        LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();

        if (ch)
        {
            if (ch->GetLang() == 0)
                lua_pushstring(L, "en");
            else if (ch->GetLang() == 1)
                lua_pushstring(L, "es");
            else if (ch->GetLang() == 2)
                lua_pushstring(L, "hu");
            else if (ch->GetLang() == 3)
                lua_pushstring(L, "ro");
            else if (ch->GetLang() == 4)
                lua_pushstring(L, "tr");
            else if (ch->GetLang() == 5)
                lua_pushstring(L, "de");
            else
                lua_pushstring(L, "de");
        }
        else
        {
            lua_pushstring(L, "de");
        }

        return 1;
    }
#endif
how to use in quest ?
 
if pc.get_lang == 4
say("Diliniz türkçe")

language = pc.get_lang()

notice("Diliniz : language")

böyle şeyler işte dene kanka
burayı anladım fakat şu yeni fonksiyon

if (ch)
{
if (ch->GetLang() == 0)
lua_pushstring(L, "en");
else if (ch->GetLang() == 1)
lua_pushstring(L, "es");
else if (ch->GetLang() == 2)
lua_pushstring(L, "hu");
else if (ch->GetLang() == 3)
lua_pushstring(L, "ro");
else if (ch->GetLang() == 4)
lua_pushstring(L, "tr");
else if (ch->GetLang() == 5)
lua_pushstring(L, "de");
else
lua_pushstring(L, "de");
}
else
{
lua_pushstring(L, "de");
}

kulalnımı nasıl olacak
 

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

Geri
Üst