Sanasol 27 Posted August 10, 2014 void log_woe_kill(struct map_session_data *ssd, struct map_session_data *tsd, int skill){ ShowDebug("var ssd: %dn", ssd->status.char_id); ShowDebug("var tsd: %dn", tsd->status.char_id); ShowDebug("var map: %sn", map->list[tsd->bl.m].name); ShowDebug("var skill: %dn", skill); if (SQL_ERROR == SQL->Query(logs->mysql_handle, "INSERT DELAYED INTO `char_woe_kills` (`time`,`killer_id`,`killed_id`,`map`,`skill`) VALUES (NOW(), '%d', '%d', '%s', '%d')", ssd->status.char_id, tsd->status.char_id, map->list[tsd->bl.m].name, skill)) { ShowDebug("oh god its errorn"); Sql_ShowDebug(logs->mysql_handle); return; }} void log_woe_kill(struct map_session_data *ssd, struct map_session_data *tsd, int skill){ ShowDebug("var ssd: %dn", ssd->status.char_id); ShowDebug("var tsd: %dn", tsd->status.char_id); ShowDebug("var map: %sn", map->list[tsd->bl.m].name); ShowDebug("var skill: %dn", skill); SqlStmt* stmt; stmt = SQL->StmtMalloc(logs->mysql_handle); if (SQL_SUCCESS != SQL->StmtPrepare(stmt, "INSERT DELAYED INTO `char_woe_kills` (`time`,`killer_id`,`killed_id`,`map`,`skill`) VALUES (NOW(), '%d', '%d', '%s', '%d')", ssd->status.char_id, tsd->status.char_id, map->list[tsd->bl.m].name, skill) || SQL_SUCCESS != SQL->StmtExecute(stmt)) { ShowDebug("oh god its errorn"); SqlStmt_ShowDebug(stmt); SQL->StmtFree(stmt); return; } SQL->StmtFree(stmt);} both versions same error... any ideas how resolve this? [Debug]: var ssd: 150000 [Debug]: var tsd: 150001 [Debug]: var map: prtg_cas01 [Debug]: var skill: 84 [Debug]: oh god its error [Debug]: at log.c:185 - self is NULL [Debug]: var ssd: 150001 [Debug]: var tsd: 150000 [Debug]: var map: prtg_cas01 [Debug]: var skill: 490 [Debug]: oh god its error [Debug]: at log.c:185 - self is NULL Quote Share this post Link to post Share on other sites
0 Sanasol 27 Posted August 10, 2014 solved sql_logs: yes Quote Share this post Link to post Share on other sites
both versions same error...
any ideas how resolve this?
Share this post
Link to post
Share on other sites