Jump to content
  • 0

Shows incorrect information


Legato

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  87
  • Reputation:   1
  • Joined:  11/20/11
  • Last Seen:  

These 2 pieces of codes are to show how much zeny the seller sold his item(s) on @autobuy. But it's showing the incorrect amount of zeny.

char temp[250];
memset(temp, '\0', sizeof(temp));

sprintf(temp,"You sold the goods for %dz.");
clif_displaymessage(sd->fd, temp);

See the images below.

30sk2ls.jpg

15g5vg3.jpg

Autobuy

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  67
  • Reputation:   23
  • Joined:  11/14/11
  • Last Seen:  

I think this is the problem:

sprintf(temp,"You sold the goods for %dz.", (int)z);

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  87
  • Reputation:   1
  • Joined:  11/20/11
  • Last Seen:  

Ohh. Thanks. I was adding this whole line

vsd,(int)z)

Thanks.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  162
  • Reputation:   1
  • Joined:  08/08/12
  • Last Seen:  

will this feauture work on latest rathena revisions?

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