fenixplayscz 16 Posted February 7, 2015 Share Posted February 7, 2015 Hi, in binary i muset change GetElk but change to? i dont know to what PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs) { return Py_BuildValue("i", CPythonPlayer::Instance().GetStatus(POINT_GOLD)); } change to? please help Link to comment Share on other sites More sharing options...
Traceur3RUN 75 Posted February 7, 2015 Share Posted February 7, 2015 Hi, in binary i muset change GetElk but change to? i dont know to what PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs) { return Py_BuildValue("i", CPythonPlayer::Instance().GetStatus(POINT_GOLD)); } change to? please help PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs) { return Py_BuildValue("K", CPythonPlayer::Instance().GetStatus(POINT_GOLD)); } Link to comment Share on other sites More sharing options...
fenixplayscz 16 Posted February 7, 2015 Author Share Posted February 7, 2015 (edited) K Dont work, Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Traceur3RUN 75 Posted February 7, 2015 Share Posted February 7, 2015 (edited) K Dont work, try with L Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
fenixplayscz 16 Posted February 7, 2015 Author Share Posted February 7, 2015 (edited) Dont work Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Syron 297 Posted February 7, 2015 Share Posted February 7, 2015 Use this: return PyLong_FromUnsignedLongLong(CPythonPlayer::Instance().GetStatus(POINT_GOLD)); Also , use BIGINT in MySQL. Link to comment Share on other sites More sharing options...
alin2894 14 Posted February 7, 2015 Share Posted February 7, 2015 Check reboot's posts on this topic: Link to comment Share on other sites More sharing options...
dukaibalu1 39 Posted February 7, 2015 Share Posted February 7, 2015 (edited) before: after: Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
fenixplayscz 16 Posted February 7, 2015 Author Share Posted February 7, 2015 Sorry for double post Link to comment Share on other sites More sharing options...
fenixplayscz 16 Posted February 7, 2015 Author Share Posted February 7, 2015 i checked but, i have in pythonplayermodule return PyLong_FromUnsignedLongLong(CPythonPlayer::Instance().GetStatus(POINT_GOLD)); and in game see in inventory 0 Yang .. Link to comment Share on other sites More sharing options...
fenixplayscz 16 Posted February 7, 2015 Author Share Posted February 7, 2015 Have return PyLong_FromUnsignedLongLong(CPythonPlayer::Instance().GetStatus(POINT_GOLD)); when i give gold, gold not add(only show text gold added) when i pickup gold, gold not add(same, only show text) in navicat not add when i pickup or give gold as GM when i add gold via navicat in player gold column Gold in game i see bud when i add 3kkk in game i see only 2.147.483.647 ? where is problem.. Link to comment Share on other sites More sharing options...
fenixplayscz 16 Posted February 7, 2015 Author Share Posted February 7, 2015 BUMP Link to comment Share on other sites More sharing options...
fenixplayscz 16 Posted February 7, 2015 Author Share Posted February 7, 2015 BUMP Link to comment Share on other sites More sharing options...
Traceur3RUN 75 Posted February 8, 2015 Share Posted February 8, 2015 Have return PyLong_FromUnsignedLongLong(CPythonPlayer::Instance().GetStatus(POINT_GOLD)); when i give gold, gold not add(only show text gold added) when i pickup gold, gold not add(same, only show text) in navicat not add when i pickup or give gold as GM when i add gold via navicat in player gold column Gold in game i see bud when i add 3kkk in game i see only 2.147.483.647 ? where is problem.. int = 2147483648 you something not change Link to comment Share on other sites More sharing options...
Former Staff flygun 304 Posted February 8, 2015 Former Staff Share Posted February 8, 2015 (edited) int = -2147483648 to 2147483648 if you want to change it from integer make sure to make it unsigned Edited February 8, 2015 by flygun Link to comment Share on other sites More sharing options...
Traceur3RUN 75 Posted February 10, 2015 Share Posted February 10, 2015 int = -2147483648 to 2147483648 if you want to change it from integer make sure to make it unsigned nope he have bad python from client BUMP maybe this help you http://en.cppreference.com/w/cpp/header/cstdint look at lzoo lzoo.config from game/src Link to comment Share on other sites More sharing options...
fenixplayscz 16 Posted February 10, 2015 Author Share Posted February 10, 2015 hmm INT have only in tables.h INT gold but when i change to long long i cant log to game.. Link to comment Share on other sites More sharing options...
Traceur3RUN 75 Posted February 10, 2015 Share Posted February 10, 2015 hmm INT have only in tables.h INT gold but when i change to long long i cant log to game.. you use vanilla sourcE? Link to comment Share on other sites More sharing options...
fenixplayscz 16 Posted February 10, 2015 Author Share Posted February 10, 2015 No, mainline_released 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now