Page 1 of 1

get_team_index() - error

Posted: Wed Apr 15, 2015 6:27 pm
by MrMalina
I would like to receive via PlayerIter list of players:

Syntax: Select all

from filters.players import PlayerIter

def load():
for index in PlayerIter(is_filters=["t", "ct"], return_types="index"):
print(index)


When using an error:
Скриншот 2015-04-15 21.24.26.jpg

Скриншот 2015-04-15 21.24.26.jpg

Posted: Wed Apr 15, 2015 6:50 pm
by satoon101
I know what the issue is. I will fix that tonight.

Posted: Thu Apr 16, 2015 12:58 am
by L'In20Cible
Woops, my fault! :)

Posted: Thu Apr 16, 2015 1:57 am
by satoon101
By the way, 2 points on your script. First, 'index' is the default return_type, so there is no need to pass it. Second, as I mentioned in another thread, there is no way a player can be both a Terrorist and a Counter-Terrorist, so no players will be iterated over.

*Edit: fixed the issue:
https://github.com/Source-Python-Dev-Team/Source.Python/commit/4b91bb1d87ce56292e85d0f8d9a5f3da5307a5c0