KeyHintText did not match C++ signature

Please post any questions about developing your plugin here. Please use the search function before posting!
User avatar
mister-man
Member
Posts: 70
Joined: Wed Aug 29, 2012 7:09 pm
Location: Germany

KeyHintText did not match C++ signature

Postby mister-man » Sun Aug 11, 2013 11:49 am

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

Community of Gamers --> http://c-o-g.de

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 45 guests