Jump to content

Recommended Posts

  • Honorable Member

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

 

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