Jump to content

Max Yang Bug im Shop


Recommended Posts

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

On 26. 1. 2018 at 2:50 PM, cubex33 said:

Hello Communitiy,

 

I have a problem with the private shop. If I want to open a shop passed this:

5a6b31dc219d2_imshop.PNG.f940829541e6d7223148ed60f25ab4a4.PNG that's normal

5a6b31fdb18ee_0Yang..PNG.0518c020adc8f5790fd003f55e1bdfd2.PNG  but here it indicates 0

Can somebody help me please?

Go to Binary Source and in PythonShop.cpp find function:

PyObject * shopGetItemPrice(PyObject * poSelf, PyObject * poArgs)

There replace this:

return Py_BuildValue("i", c_pItemData->price);

to:

return Py_BuildValue("L", c_pItemData->price);

and replace this:

return Py_BuildValue("i", 0);

to:

return Py_BuildValue("L", 0);

 

And you are done.

If I helped you, do not forget to press "Thanks" button! 

Link to comment
Share on other sites

  • Premium
9 hours ago, .Rise said:

Go to Binary Source and in PythonShop.cpp find function:


PyObject * shopGetItemPrice(PyObject * poSelf, PyObject * poArgs)

There replace this:


return Py_BuildValue("i", c_pItemData->price);

to:


return Py_BuildValue("L", c_pItemData->price);

and replace this:


return Py_BuildValue("i", 0);

to:


return Py_BuildValue("L", 0);

 

And you are done.

Eh, no. I did max yang and share so, edit like that.
image.png.d1d0bc99f9d744095ea418585e785378.png
 


 

Link to comment
Share on other sites

Am 28.1.2018 um 23:20 schrieb .Rise:

Go to Binary Source and in PythonShop.cpp find function:


PyObject * shopGetItemPrice(PyObject * poSelf, PyObject * poArgs)

There replace this:


return Py_BuildValue("i", c_pItemData->price);

to:


return Py_BuildValue("L", c_pItemData->price);

and replace this:


return Py_BuildValue("i", 0);

to:


return Py_BuildValue("L", 0);

 

And you are done.

Thanks, it works!

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.