Jump to content
  • 0

Dont delete character if item in inventory .


Cyrix

Question


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   13
  • Joined:  02/16/12
  • Last Seen:  

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.
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

the inventory_db variable aren't declared/initialized.

Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   13
  • Joined:  02/16/12
  • Last Seen:  

Solved. :ph34r:

Link to comment
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.   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.

×
×
  • Create New...