Thorer 19 Posted November 28, 2014 Share Posted November 28, 2014 Hi guys, i have problem, what should i do to allow this return Py_BuildValue("i", CPythonPlayer::Instance().GetStatus(POINT_GOLD)); To get long long? K or L wont work. Link to comment Share on other sites More sharing options...
Premium Sanchez 2465 Posted November 28, 2014 Premium Share Posted November 28, 2014 Use the PyLong_FromLongLong function. 2 Link to comment Share on other sites More sharing options...
Active Member Koray 1998 Posted November 29, 2014 Active Member Share Posted November 29, 2014 Use the PyLong_FromLongLong function. How to use this function ? Link to comment Share on other sites More sharing options...
Premium Sanchez 2465 Posted November 29, 2014 Premium Share Posted November 29, 2014 Just like this: return PyLong_FromLongLong(CPythonPlayer::Instance().GetStatus(POINT_GOLD)); 2 Link to comment Share on other sites More sharing options...
Thorer 19 Posted November 29, 2014 Author Share Posted November 29, 2014 return Py_BuildValue("L", PyLong_FromLongLong(CPythonPlayer::Instance().GetStatus(POINT_GOLD))); And return 10461165943521280 + 4 every get Link to comment Share on other sites More sharing options...
Premium Sanchez 2465 Posted November 29, 2014 Premium Share Posted November 29, 2014 What is that? Use this: return PyLong_FromLongLong(CPythonPlayer::Instance().GetStatus(POINT_GOLD)); 1 Link to comment Share on other sites More sharing options...
Thorer 19 Posted November 29, 2014 Author Share Posted November 29, 2014 Och, i fucked up and didnt change GetStatus to long long, thank you, close pls. 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