Hello, I would check before deleting the character, if you have items with it, not delete. If not delete character.
like this
if( SQL_ERROR == Sql_Query(sql_handle, "SELECT `%d`.char_id,`%d`.char_id FROM `%d`, `%d` WHERE `char_id`='%d' AND `inventory`.`char_id`='%d'", char_db, inventory_db, char_db, inventory_db, char_id, char_id) )
error:
char.c:2204:145: note: each undeclared identifier is reported only once for each function it appears in char.c:2204:154: error: âinventory_dbâ undeclared (first use in this function)
Question
Cyrix
Hello,
Hello, I would check before deleting the character, if you have items with it, not delete. If not delete character.
like this
if( SQL_ERROR == Sql_Query(sql_handle, "SELECT `%d`.char_id,`%d`.char_id FROM `%d`, `%d` WHERE `char_id`='%d' AND `inventory`.`char_id`='%d'", char_db, inventory_db, char_db, inventory_db, char_id, char_id) )
error:
char.c:2204:145: note: each undeclared identifier is reported only once for each function it appears in char.c:2204:154: error: âinventory_dbâ undeclared (first use in this function)
thx
Please use CODEBOX.
Link to comment
Share on other sites
2 answers 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.