Jump to content
  • 0

BINARY MAX GOLD PROBLEM


ALLWPP

Question

I Can Change PythonPlayerModule.cpp ;

 

//PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
//{
//return Py_BuildValue("i", CPythonPlayer::Instance().GetStatus(POINT_GOLD));
//}


PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
{
return Py_BuildValue("LL", CPythonPlayer::Instance().GetStatus(POINT_GOLD));
}

uicommon.py ;

 

money = 0
if text and text.isdigit():
try:
money = LongLong(text)
except ValueError:
money = 500000000000

But This Error :

 

http://prntscr.com/625hpg

 

Link to comment
  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

4 answers to this question

Recommended Posts

  • 0

try 

 

PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
{
return Py_BuildValue("ll", CPythonPlayer::Instance().GetStatus(POINT_GOLD));
 
return PyLong_FromLongLong(CPythonPlayer::Instance().GetStatus(POINT_GOLD));
}
Link to comment
  • 0

 

 

try 

 

PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
{
return Py_BuildValue("ll", CPythonPlayer::Instance().GetStatus(POINT_GOLD));
 
return PyLong_FromLongLong(CPythonPlayer::Instance().GetStatus(POINT_GOLD));
}

 

 

http://prntscr.com/625lzd

 

Not Fix.

 

try

PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)

{

return Py_BuildValue("K", CPythonPlayer::Instance().GetStatus(POINT_GOLD));

}

Link to comment
  • 0

 

 

 

try 

 

PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
{
return Py_BuildValue("ll", CPythonPlayer::Instance().GetStatus(POINT_GOLD));
 
return PyLong_FromLongLong(CPythonPlayer::Instance().GetStatus(POINT_GOLD));
}

 

 

http://prntscr.com/625lzd

 

Not Fix.

 

try

PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)

{

return Py_BuildValue("K", CPythonPlayer::Instance().GetStatus(POINT_GOLD));

}

 

http://prntscr.com/625nwz

 

Not Fix.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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