reapi
reapi copied to clipboard
Issue with floatround parsing of get_member_game
floatround(get_gametime() - get_member_game(m_iRoundTimeSecs), floatround_floor); --> -1 (in uint32) floatround(get_gametime() - 105, floatround_floor); --> correct value!
when I print using server_print("%d", get_member_game(m_iRoundTimeSecs)) I get result as 105 only.
m_iRoundTimeSecs int же а get_gametime() Float
floatround(get_gametime() - float(get_member_game(m_iRoundTimeSecs)), floatround_floor);
floatround(get_gametime() - _:get_member_game(m_iRoundTimeSecs), floatround_floor);
#define GetGameMemberAsInteger _:get_member_game
#define GetGameMemberAsFloat Float:get_member_game