Jump to content

flatik

Premium
  • Posts

    94
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Posts posted by flatik

  1. 4 hours ago, AltanOzkan said:

    I just tried for questlua_item.cpp and it gave to me this errors.

     

    
    questlua_item.cpp: In function 'int quest::item_get_flag(lua_State*)':
    questlua_item.cpp:769:3: error: 'lua_pushnumb' was not declared in this scope
       lua_pushnumb?er(L, item ? item->GetFlag() : 0);
       ^
    questlua_item.cpp:769:48: error: 'er' was not declared in this scope
       lua_pushnumb?er(L, item ? item->GetFlag() : 0);
                                                    ^
    questlua_item.cpp:769:49: error: expected ':' before ';' token
       lua_pushnumb?er(L, item ? item->GetFlag() : 0);
                                                     ^
    questlua_item.cpp:769:49: error: expected primary-expression before ';' token
    questlua_item.cpp: In function 'int quest::item_get_applies(lua_State*)':
    questlua_item.cpp:898:10: warning: unused variable 'Key1' [-Wunused-variable]
         char Key1[64] = "", Key2[64] = "";
              ^
    questlua_item.cpp:898:25: warning: unused variable 'Key2' [-Wunused-variable]
         char Key1[64] = "", Key2[64] = "";
                             ^
    questlua_item.cpp: In function 'int quest::item_equip_selected(lua_State*)':
    questlua_item.cpp:1341:30: warning: NULL used in arithmetic [-Wpointer-arith]
       if (equipped->GetVnum() != NULL || item->IsEquipped())
                                  ^
    gmake[1]: *** [Makefile:188: .obj/questlua_item.o] Error 1
    gmake[1]: *** Waiting for unfinished jobs....
    gmake[1]: Leaving directory '/usr/Srcs/Server/game/src'
    gmake: *** [Makefile:111: all] Error 2

     

    lua_pushnumb?er to lua_pushnumber

    • Love 1
  2. Quote

    InnoDB is slightly faster in writing, but it gets totally corrupted very often in case of system crash or reboot (with metin2 server still running) (shutdown -r now is safe).

    Making Sql backups of InnoDB is mandatory if you don't want to die fast. (cold backups, if not complete, are junk with innodb)

    MyISAM is slightly faster in reading.

    MariaDB has also Aria as engine, Mysql8 improves MyISAM and InnoDB by a lot (like InnoDB with improved ACID).

    https://dev.mysql.com/doc/refman/8.0/en/innodb-benefits.html

    https://dev.mysql.com/doc/refman/8.0/en/myisam-storage-engine.html

     

    ~ martysama

     

×
×
  • 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.