Jump to content

DarkAng3l

Inactive Member
  • Posts

    62
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by DarkAng3l

  1. 2 hours ago, SemperFi said:

    Ty vole pozor, tady máme borce, co přepsal celý server do UTF-8.
    OMEGALUL

    A ty si snad myslíš, že to je nemožné ? Já ho osobně předělal celý do UTF-8 a pokud ti mohu doporučit, tak se o to ani nepokoušej, protože skončíš hned na začátku.

    17 hours ago, Avisek said:

    Hello,
    I have made quest, that inputs values into database "report".

    I input those characters:
    input.png

    And in db saves:
    output.png

    I have set charsets (db in fields and options), also in charset of server.
    options.png

    fields.png

    charset.png

     

    I really dont know, where is problem..

    Could you help me, please? :/

     

    To, že máš tabulku v UTF-8 ještě neznamená, že ukládaná data jsou v tomto kódování. Jak již píše T4Ump - server je napsán v kódování latin, což znamená (CP1250, CP1252, CP1256 atp). Dokud nepřepíšeš připojení k databázi, že má používat UTF-8, tak to v Navicatu uvidíš jako rozsypanej čaj.
     

    Poradil bych ti, aby sis napsal kus kódu, abys to viděl správně, ale to je asi zbytečné v tomto případě.

    • Love 1
  2. def Open(self, title,days):
     
            self.days = days
            self.title = title
     
            if len(title) > 25:
                title = title[:22] + "..."
     
            self.itemStock = {}
            shop.ClearPrivateShopStock()
            self.nameLine.SetText(title)
            self.SetCenterPosition()
            self.Refresh()
            self.Show()
            if app.WJ_ENABLE_TRADABLE_ICON:
                self.lockedItems = {i:(-1,-1) for i in range(shop.SHOP_SLOT_COUNT)}
                self.interface.SetOnTopWindow(player.ON_TOP_WND_PRIVATE_SHOP)
                self.interface.RefreshMarkInventoryBag()
     
            global g_isBuildingPrivateShop
            g_isBuildingPrivateShop = True

    Replace with this and remove self.days variable

    def Open(self, title):
            self.title = title
     
            if len(title) > 25:
                title = title[:22] + "..."
     
            self.itemStock = {}
            shop.ClearPrivateShopStock()
            self.nameLine.SetText(title)
            self.SetCenterPosition()
            self.Refresh()
            self.Show()
            if app.WJ_ENABLE_TRADABLE_ICON:
                self.lockedItems = {i:(-1,-1) for i in range(shop.SHOP_SLOT_COUNT)}
                self.interface.SetOnTopWindow(player.ON_TOP_WND_PRIVATE_SHOP)
                self.interface.RefreshMarkInventoryBag()
     
            global g_isBuildingPrivateShop
            g_isBuildingPrivateShop = True

     

    • Love 2
  3. If you have this error on level 255, then use this statement or remove this useless statement and add to exp_table one row to the end for level 255. Current code is doing the same thing.
     

    if player.GetStatus(player.LEVEL) == 255:
    	self.imgCharStatusBG1.SetPercentage(player.GetStatus(player.EXP), 1)
    else:
    	self.imgCharStatusBG1.SetPercentage(player.GetStatus(player.EXP), player.GetStatus(player.NEXT_EXP))

     

  4. 1 hour ago, revengertmt said:

    Error    206    error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ)    C:\Users\DevGames\Desktop\DevWorkSashOffline\Client\Client\UserInterface\cryptlib-5.6.1MT.lib(cryptlib.obj)    UserInterface
    Error    207    error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ)    C:\Users\DevGames\Desktop\DevWorkSashOffline\Client\Client\UserInterface\cryptlib-5.6.1MT.lib(cryptlib.obj)    UserInterface
    Error    208    error LNK2001: unresolved external symbol "public: void __thiscall std::_Mutex::_Unlock(void)" (?_Unlock@_Mutex@std@@QAEXXZ)    C:\Users\DevGames\Desktop\DevWorkSashOffline\Client\Client\UserInterface\cryptlib-5.6.1MT.lib(gf2n.obj)    UserInterface
    Error    209    error LNK2001: unresolved external symbol "public: void __thiscall std::_Mutex::_Lock(void)" (?_Lock@_Mutex@std@@QAEXXZ)    C:\Users\DevGames\Desktop\DevWorkSashOffline\Client\Client\UserInterface\cryptlib-5.6.1MT.lib(gf2n.obj)    UserInterface
    Error    210    error LNK2001: unresolved external symbol "private: static void __cdecl std::locale::facet::facet_Register(class std::locale::facet *)" (?facet_Register@facet@locale@std@@CAXPAV123@@Z)    C:\Users\DevGames\Desktop\DevWorkSashOffline\Client\Client\UserInterface\cryptlib-5.6.1MT.lib(integer.obj)    UserInterface
    Error    211    error LNK2001: unresolved external symbol "public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z)    C:\Users\DevGames\Desktop\DevWorkSashOffline\Client\Client\UserInterface\cryptlib-5.6.1MT.lib(integer.obj)    UserInterface
    Error    212    error LNK1120: 6 unresolved externals    C:\Users\DevGames\Desktop\DevWorkSashOffline\bin\UserInterface_rel.exe    UserInterface

     

    Rebuild cryptlib, problem solved.

    • Love 1
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.