Jump to content

ZaosEU

Member
  • Posts

    9
  • Joined

  • Last visited

  • Feedback

    0%

About ZaosEU

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

ZaosEU's Achievements

Contributor

Contributor (5/16)

  • Reacting Well
  • Dedicated
  • First Post
  • Collaborator
  • Conversation Starter

Recent Badges

2

Reputation

  1. I've redone the function and works fine for me! PyObject* playerCheckAffect(PyObject* poSelf, PyObject* poArgs) { int dwType; BYTE bApplyOn; switch (PyTuple_Size(poArgs)) { case 2: if (!PyTuple_GetInteger(poArgs, 0, &dwType)) return Py_BadArgument(); if (!PyTuple_GetByte(poArgs, 1, &bApplyOn)) return Py_BadArgument(); break; default: return Py_BuildException(); } int iAffIndex = CPythonPlayer::Instance().GetAffectDataIndex(dwType, bApplyOn); return Py_BuildValue("b", iAffIndex != -1); } Hope it helps
×
×
  • 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.