Css bombplant site get
Posted: Thu Sep 24, 2020 4:58 pm
Hi
Some reason i can't get bombsite show at bombplant event
Console just spamms this:
The code:
Some reason i can't get bombsite show at bombplant event
Console just spamms this:
Code: Select all
[SP] Caught an Exception:
Traceback (most recent call last):
File "..\addons\source-python\packages\source-python\events\listener.py", line 92, in fire_game_event
callback(game_event)
File "..\addons\source-python\plugins\rpg\rpg.py", line 2372, in bomb_planted
site = args.get_short('site')
AttributeError: 'GameEvent' object has no attribute 'get_short'
The code:
Syntax: Select all
@Event('bomb_planted')
def bomb_planted(args):
userid = args.get_int('userid')
site = args.get_short('site')
for i in rpglib.getUseridList():
rpglib.tell(i, 'Bombsite %s' % (site))