Premium ahynoa 15 Posted March 4, 2016 Premium Share Posted March 4, 2016 help, in private store does not display correctly yang. Link to comment Share on other sites More sharing options...
Premium TAUMP 838 Posted March 4, 2016 Premium Share Posted March 4, 2016 pYTHONSHOP.CPP EDIT LIKE THAT PyObject * shopGetItemPrice(PyObject * poSelf, PyObject * poArgs) { int iIndex; if (!PyTuple_GetInteger(poArgs, 0, &iIndex)) return Py_BuildException(); const TShopItemData * c_pItemData; if (CPythonShop::Instance().GetItemData(iIndex, &c_pItemData)) return Py_BuildValue("L", c_pItemData->price); return Py_BuildValue("i", 0); } 1 Link to comment Share on other sites More sharing options...
Premium ahynoa 15 Posted March 4, 2016 Author Premium Share Posted March 4, 2016 16 minutes ago, .T4Ump said: pYTHONSHOP.CPP EDITAR ASI PyObject * shopGetItemPrice (PyObject * poSelf, PyObject * poArgs) { int iIndex; (! PyTuple_GetInteger (poArgs, 0, y iIndex)) si regresan Py_BuildException (); const * TShopItemData c_pItemData; si (. CPythonShop :: Instancia () GetItemData (iIndex, y c_pItemData)) vuelven Py_BuildValue ( "L", c_pItemData-> precio); volver Py_BuildValue ( "i", 0); } thank you very much, it worked 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