Jump to content
  • 0

Max Gold


fenixplayscz

Question

how to fix please .. 

 

p5Zkg.png

 

 i have in binary 

 

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

and still dont work... please help ..

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

 

how to fix please .. 

 

p5Zkg.png

 

 i have in binary 

 

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

and still dont work... please help ..

 

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

ULL

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

  • 0

 

 

how to fix please .. 

 

p5Zkg.png

 

 i have in binary 

 

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

and still dont work... please help ..

 

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

ULL

 

Not work.. have this error 

 

1>.PythonPlayerModule.cpp(620) : error C3861: 'PyLong_FromULongLong': identifier not found
Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 0

 

 

how to fix please .. 

 

p5Zkg.png

 

 i have in binary 

 

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

and still dont work... please help ..

 

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

ULL

 

Longobject.h??

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 0

Make a printf when GetStatus is called with POINT_GOLD argument to debug the problem. But i can tell you that you get that big number because POINT_GOLD has a negative value.

This can be caused by server-client comunication. Check in server when you send the packet and in client when u receive the packet what values has m_gold.

 

I think somewhere you forgot to change gold declaration or a variable declaration and if you send a value bigger than 2.2kkk then it gets negative.

Link to comment
Share on other sites

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


  • Activity

    1. 7

      Metin2 2003 Beta Client!!!!!

    2. 32

      Boss Effect Over Head

    3. 1

      Open Source API for Metin2 Server Management - Early Development

    4. 0

      Official Item Combination [18.4]

    5. 2

      Proper SIGNAL management for Windows

    6. 2

      Proper SIGNAL management for Windows

    7. 4

      syserr erorr ( not working OK button on client )

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.