Noutati

03.01.2019 10:20 Am adaugat "Ce sa bat?"
02.01.2019 18:10 Am adaugat contul

test

cu parola

test

28.12.2018 11:40 Am adaugat "deblocare caracter"

(585) 396-2170

Daca mai este macar fila .frm putem incerca:
cd /var/db/mysql/player && myisamchk -r item_proto --safe-recover --force
sau
cd /var/db/mysql/player && myisamchk -r mob_proto --safe-recover --force

Si de la "nu se poate repara" din phpMyAdmin tabelul devine functional.

[FIX] std::min std::max std::minmax

Adaugam: #include

401-829-5093

[FIX] [C++] DB fix startup error

Editam /db/src/ClientManager.cpp
Daca folosim locale/germany cautam germany, daca folosim locale/romania cautam romania si asa mai departe.

Cautam g_stLocale = "latin2";

Pentru Romania folosim latin2.

Editam apoi main.cpp si cautam:

std::string g_stLocale = "euckr";

pe care il inlocuim cu

std::string g_stLocale = "latin2";

[FIX] undefined reference to `_malloc_options'

Comentati aceste linii in main.cpp:

Linia 49-51:


/*#ifdef __FreeBSD__
extern const char * _malloc_options;
#endif*/

Linia 70-72:
/
*#ifdef __FreeBSD__
_malloc_options = "A";
#endif*/

310-722-6547

Inlocuieste
TABLE_POSTFIX = ""

cu

TABLE_POSTFIX = " "

apoi fa restart la server.

[FIX] ../libstdc++.so.6: version GLIBCXX_3.4.20 required by ../db not found

PROBLEMA: .../libstdc++.so.6: version GLIBCXX_3.4.20 required by ../db not found
SOLUTIA:
cd /usr/ports/lang/gcc49/ && make install clean
sau
pkg install gcc49

Acum sa vedem ce avem nevoie ...

[C++]Activare Client Version Checker

[C++]Activare Client Version Checker

Acest "Client Version Checker" verifica daca versiunea clientului este la fel cu versiunea serverului,
daca ele sunt diferite iti va aparea acest mesaj pe chat si vei fi deconectat.

Versiunea clientului nu este compatibila. In cateva secunde vei fi deconectat. Foloseste clientul actual de pe site-ul cjmt2.go.ro

503-975-4825

Open: /game/src/item.cpp
Find:

DWORD dwImmuneFlag = 0;

for (int i = 0; i < WEAR_MAX_NUM; ++i)
if (m_pOwner->GetWear(i))
SET_BIT(dwImmuneFlag, m_pOwner->GetWear(i)->m_pProto->dwImmuneFlag);

m_pOwner->SetImmuneFlag(dwImmuneFlag);

Replace with:

DWORD dwImmuneFlag = 0;
LPITEM item = NULL;

[FIX] MySQL injection

Open: /game/src/db.cpp
Find:

void DBManager::Query(const char * c_pszFormat, ...)

Replace whole function with:

void DBManager::Query(const char * c_pszFormat, ...)
{
char szQuery[4096];
va_list args;

va_start(args, c_pszFormat);
vsnprintf(szQuery, sizeof(szQuery), c_pszFormat, args);
va_end(args);
std::string sQuery(szQuery);

m_sql.AsyncQuery(sQuery.substr(0,sQuery.find_first_of(";")==-1?sQuery.length(): sQuery.find_first_of(";")).c_str());
}

Find:

Pagini

Subscribe to cjmt2.go.ro RSS