notbugme 14 Posted May 7, 2018 Share Posted May 7, 2018 Hello, I have one problem with change limit yang on cube system. In binary, I got this line: PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "BINARY_Cube_UpdateInfo", Py_BuildValue("(lll)", gold, itemVnum, count)); and I don't know how to change it into LONG LONG, actually it is LONG Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19658 Posted May 7, 2018 Honorable Member Share Posted May 7, 2018 Probably with this? else if ("info" == TokenVector[1]) { if (5 != TokenVector.size()) { TraceError("CPythonNetworkStream::ServerCommand(c_szCommand=%s) - Strange Parameter Count : %s", c_szCommand); return; } long long gold = atoll(TokenVector[2].c_str()); UINT itemVnum = atoi(TokenVector[3].c_str()); UINT count = atoi(TokenVector[4].c_str()); PyObject * poArgs = PyTuple_New(3); PyTuple_SetItem(poArgs, 0, PyLong_FromLongLong(gold)); PyTuple_SetItem(poArgs, 1, PyInt_FromLong(itemVnum)); PyTuple_SetItem(poArgs, 2, PyInt_FromLong(count)); PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "BINARY_Cube_UpdateInfo", poArgs); } 1 Link to comment Share on other sites More sharing options...
notbugme 14 Posted May 8, 2018 Author Share Posted May 8, 2018 Yes its work! Really thanks. I'm trying change this: Py_BuildValue("(lll)" But without success, your code work very well Thanks! 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