Quote:
Originally Posted by Gabe Iggy
hl_get_player_team() is unable to get the team index of the player. Returns 0 with a malformed string.
Tested with bugfixed HL 0.2.51 (59a2950), the latest version of ReHLDS.
Tested with both Orpheu (my own signatures) and ReAPI.
Code:
new teambuf[32];
new teamid = hl_get_player_team(id, teambuf, charsmax(teambuf));
server_print("TEAMID %d - %s", teamid, teambuf);
Code:
"mp_teamlist" is "Black Mesa;HECU"
EDIT: Managed to solve it by editing the offsets-cbaseplayer.txt file. I just shifted the offsets by 4.
Code:
"m_szTeamName" // char[16]
{
"type" "string"
"size" "16"
"windows" "1532"
"linux" "1552"
"mac" "1552"
}
|
Hello gabe, strange error, with last version of ReHlds, can you tell me the exact the build? Also bugfixedhl hasn't been updated for a long time ago, would you mind to try this one from this CI i made a couple days ago?
https://github.com/rtxa/BugfixedHL/actions
Strange to me that you just needed to increase that offset, i wonder if there's a new HL Build
__________________