Jump to content
  • 0
Leecher

[RESOLVED] Weird error ([Debug]: at ..\src\map\npc.c:1432)

Question

Hi,

 

I don't know how to fix this error. I am merging the updated revisions to my localpc then this happens. My last update was June 2, 2014.

 

Please help, thanks!

 

 

 

 

post-5635-0-42322700-1402457765_thumb.png

Edited by Leecher

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Post that line from npc.c (1432)

 

From line 1429 to 1435

	if ( SQL_ERROR == SQL->StmtPrepare(stmt, "SELECT `name`, `itemid`, `amount` FROM `%s`", map->npc_market_data_db)		|| SQL_ERROR == SQL->StmtExecute(stmt)		) {		SqlStmt_ShowDebug(stmt);		SQL->StmtFree(stmt);		return;	} 

SqlStmt_ShowDebug(stmt); <<< Line 1432

Share this post


Link to post
Share on other sites
  • 0

 

Post that line from npc.c (1432)

 

From line 1429 to 1435

	if ( SQL_ERROR == SQL->StmtPrepare(stmt, "SELECT `name`, `itemid`, `amount` FROM `%s`", map->npc_market_data_db)		|| SQL_ERROR == SQL->StmtExecute(stmt)		) {		SqlStmt_ShowDebug(stmt);		SQL->StmtFree(stmt);		return;	} 

SqlStmt_ShowDebug(stmt); <<< Line 1432

that means map->npc_market_data_db is empty

So check if you have following lines in map.c: Line 3659 (if its without any source edits)

else if(strcmpi(w1,"npc_market_data_db")==0)			strcpy(map->npc_market_data_db, w2);

and in inter-server.conf: Line 130 or around that

 

npc_market_data_db: npc_market_data 

if not, that means you have not updated it properly, so maybe update it via git(which is the most preferred way) or get a new revision

 

Share this post


Link to post
Share on other sites
  • 0

FIXED!

 

I didn't see it, no conflicts because I add to ignores list the inter-server.conf, maps-server.conf, char-server.conf to avoid to accidentally add and commit it for my server, specifically the IP's.

 

Therefore, that causes the trouble.

 

Thanks! 

Share this post


Link to post
Share on other sites

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

×
×
  • Create New...

Important Information

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