Jump to content
  • 0

Help with this: idb_get


LordAioria

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  12/31/11
  • Last Seen:  

Hello, i am using this code :

return (struct house_storage*)idb_get(special_storage_db,special_id);

This is house_storage struct:

struct house_storage {
int dirty;
int special_id;
short storage_status;
int storage_amount;
struct item items[MAX_HOUSE_STORAGE];
};

and debugging this code, i see that at that moment special_id = 132 ...

and it returns a struct with all fields ok, and all items that are at special_storage_db with special_id=132

.... BUT with special_id = 0 instead of 132....

the question is why????

Please any idea about how to solve it?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  12/31/11
  • Last Seen:  

SOLVED!!! Thanks for the help ;)

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