Page 1 of 1

KeyHintText did not match C++ signature

Posted: Sun Aug 11, 2013 11:49 am
by mister-man
Hay,

I tried to send a KeyHintText text with the following code

Code: Select all

def KeyHintText(self, msg, userid=0):
    if userid != 0:
        pindex = index_from_userid(userid)
        m = messages.KeyHintText(message=str(self.__removeColor(msg)))
        m.send(pindex)



and got the following error

Code: Select all

[SP] Loading addon 'AoD'...

[SP]  Caught an Exception:
Traceback (most recent call last):
  File '..\addons\source-python\_libs\addons\manager.py', line 48, in __missing_
_
    instance = _LoadedAddon(addon_name)
  File '..\addons\source-python\_libs\addons\manager.py', line 246, in __init__

    self._globals['load']()
  File '..\addons\source-python\AoD\AoD.py', line 35, in load
    psay.KeyHintText(22, '#redHay Im #whitethere!')
  File '..\addons\source-python\AoD\_libs\saylib.py', line 69, in KeyHintText
    pindex = index_from_userid(userid)
  File '..\addons\source-python\_libs\players\helpers.py', line 29, in index_fro
m_userid
    return index_from_playerinfo(playerinfo_from_userid(userid))
  File '..\addons\source-python\_libs\players\helpers.py', line 155, in playerin
fo_from_userid
    return CPlayerInfo(userid)

Boost.Python.ArgumentError: Python argument types in
    CPlayerInfo.__init__(CPlayerInfo, str)
did not match C++ signature:
    __init__(struct _object *, class CEdict *)
    __init__(struct _object *, int)