Jump to content
  • 0

Dont delete character if item in inventory .


Question

Posted (edited)

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

 

Edited by Emistry
Please use CODEBOX.

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...