You didn't get a "tag mismatch error", you got a warning. The warning means the left-hand side(lhs) tag and the right-hand side(rhs) tag do not match.
Check the expression:
PHP Code:
g_PreTeam[id] = cs_get_user_team(id);
g_PreTeam[id] is the lhs and it is created as:
PHP Code:
new g_PreTeam[33]
so it doesn't have a tag.
Check rhs:
cs_get_user_team(id).
http://amxmodx.org/api/cstrike/cs_get_user_team
PHP Code:
native CsTeams:cs_get_user_team(index, &any:model = CS_DONTCHANGE);
The native returns a tagged value, with the tag "CsTeams". Te solution is simple, either tag
g_PreTeam with
CsTeams or detag the return value of the native with
_:
About looping: search for get_players.
Also, please edit your posts instead of making multiple unneeded posts.
__________________