Jump to content
  • 0
Sign in to follow this  
Sanasol

self is NULL

Question

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

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.