in the trace?
Printable View
in the trace?
its empty
if its empty than maybe
CPCTable *pPcTable = app->g_pTableContainer->GetPcTable();
sPC_TBLDAT *pTblData = (sPC_TBLDAT*)pPcTable->GetPcTbldat((int)app->db->getInt("Race"), (int)app->db->getInt("Class"), (int)app->db->getInt("Gender"));
gives you a NULL pointer for pTableData
you should make sure you have loaded the pctable it self in the first place else everything from it is NULL
Just fine something,
m_aPcTbldat[byRace][byClass][byGender]
this function return a NULL pointer i'm looking why.
ok ive tryed now
and this also crashes the gameserver. So there must be a problem withQuote:
printf(" %i \n", pTblData->byRace);
?Quote:
CPCTable *pPcTable = app->g_pTableContainer->GetPcTable();
is good, i think the table initialisation is not do or is not good, if you look all the function of PCTable there is a :Quote:
CPCTable *pPcTable = app->g_pTableContainer->GetPcTable();
but i don't know how to use it at the moment.Quote:
bool CPCTable::SetPcTbldat(BYTE byRace, BYTE byClass, BYTE byGender, sTBLDAT * pTbldat)
http://s7.directupload.net/images/140619/woc2zdd3.jpg
working now. thanks!
how ^^ ?
Oh, i can't see my name D: