Jump to content

Max Yang problem


Recommended Posts

Hey Guy´s :)

 

I have a problem with max yang.

I edit all cpp´s and edit all int to long long.

But when i try to log in, i get this syserr:

1111 16:08:59335 :: Acce number 1005 is not exist.
1111 16:08:59335 :: Acce number 1005 is not exist.
1111 16:08:12900 :: Phase Select does not handle this header (header: 4, last: 17, 4)
1111 16:08:12933 :: Phase Select does not handle this header (header: 25, last: 4, 25)

 

i dont know why my acce number not exist.

 

hope anyone can help :)

best regards

Link to comment
Share on other sites

  • Honorable Member

You should use other ways, here are two (I prefer the first)

PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
{
	long long llGold = CPythonPlayer::Instance().GetStatus(POINT_GOLD);
#ifdef _DEBUG
	Tracef("GetElk(): %lld\n", llGold);
#endif
	return PyLong_FromLongLong(llGold);
}

PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
{
	long long llGold = CPythonPlayer::Instance().GetStatus(POINT_GOLD);
#ifdef _DEBUG
	Tracef("GetElk(): %lld\n", llGold);
#endif
	PyObject *args = PyTuple_New(1);
	PyTuple_SetItem(args, 0, PyLong_FromLongLong(llGold));
	Py_BuildValue("()", args);
}

 

  • Love 1
Link to comment
Share on other sites

You should use other ways, here are two (I prefer the first)

PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
{
	long long llGold = CPythonPlayer::Instance().GetStatus(POINT_GOLD);
#ifdef _DEBUG
	Tracef("GetElk(): %lld\n", llGold);
#endif
	return PyLong_FromLongLong(llGold);
}

PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
{
	long long llGold = CPythonPlayer::Instance().GetStatus(POINT_GOLD);
#ifdef _DEBUG
	Tracef("GetElk(): %lld\n", llGold);
#endif
	PyObject *args = PyTuple_New(1);
	PyTuple_SetItem(args, 0, PyLong_FromLongLong(llGold));
	Py_BuildValue("()", args);
}

 

thanks it works, but when the value changes (buy,sell whatever) binary shows a high amount...

when i relog then the yang is the real value.

Link to comment
Share on other sites

BUMP

 

I tryed long long and unsigned long long as return type.

Both dont work when my yang increase over 2kkk it changes to 0 yang, and in navicate and after relog the yang have the real value. I edited all what is nacessary for max yang.

I hope anyone can tell me what the problem is.

Best regards :)

Link to comment
Share on other sites

BUMP

 

I tryed long long and unsigned long long as return type.

Both dont work when my yang increase over 2kkk it changes to 0 yang, and in navicate and after relog the yang have the real value. I edited all what is nacessary for max yang.

I hope anyone can tell me what the problem is.

Best regards :)

If you have python27 you can try "K" value, not "ULL" or "LL", or PyLong_AsLongLong or etc. Or you don't chance PointChange function.

  • Love 1

"Don't be a scammer. Don't be a hacker. Don't be a motherfucker. Karma is a bitch"

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