Jump to content

Recommended Posts

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

 

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

 

 

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

 

 

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 60

      Inbuild GR2 Animation

    2. 2

      wait() function bug

    3. 0

      Remove Party Role Bonuses

    4. 1

      Fix CBar3D

    5. 2

      set_quest_state not working

    6. 1

      Fix CBar3D

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