Jump to content

Yang limit problem


Recommended Posts

Hello i update gold yang limit but i have a problem. when i login gold its work but when i change the gold value its going to 0.

Serverside config.cpp

Spoiler

long long    g_llMaxGold = 9223372036854775807LL;

 

client:

Spoiler

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

i also try this
 

Spoiler

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);
}

 

  • Love 1
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.