January 21, 2020, 10:42:16 PM

Author Topic: [ADDON] WCS Race Admin  (Read 6433 times)

Offline razzer99

  • Level 2 Apprentice
  • **
  • Posts: 44
Re: [ADDON] WCS Race Admin
« Reply #15 on: June 10, 2012, 07:45:26 PM »
Its not working for me..

Offline anowikow

  • Level 0 Beginner
  • Posts: 3
  • <3 WCS :)
Re: [ADDON] WCS Race Admin
« Reply #16 on: January 05, 2020, 10:37:57 PM »
This it is i think...

Traceback (most recent call last):
  File "C:\srcds\orangebox\cstrike\addons\eventscripts\_libs\python\popuplib.py"
, line 1890, in _call_func
    f(u,c,p)
  File "C:\srcds\orangebox\cstrike\addons\eventscripts\wcs\addons\changerace\cha
ngerace.py", line 35, in RaceHandler
    player = wcs.wcs.getPlayer(wcs_userid)
  File "C:\srcds\orangebox\cstrike\addons\eventscripts\wcs\wcs.py", line 411, in
 getPlayer
    userid = int(userid)
TypeError: int() argument must be a string or a number, not 'NoneType'

es.keygroupcreate('WCSUserData')

Add this line after
es.keycreate ('WCSUserData', 'Temp')


it should be like this

def load():
   es.keygroupcreate('WCSUserData')
   es.keycreate('WCSUserData', 'Temp')