reapi icon indicating copy to clipboard operation
reapi copied to clipboard

Issue with floatround parsing of get_member_game

Open souvikdas95 opened this issue 8 years ago • 3 comments

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.

souvikdas95 avatar Feb 26 '17 12:02 souvikdas95

m_iRoundTimeSecs int же а get_gametime() Float

floatround(get_gametime() - float(get_member_game(m_iRoundTimeSecs)), floatround_floor);

ghost avatar Feb 26 '17 15:02 ghost

floatround(get_gametime() - _:get_member_game(m_iRoundTimeSecs), floatround_floor);

WPMGPRoSToTeMa avatar Feb 26 '17 21:02 WPMGPRoSToTeMa

#define GetGameMemberAsInteger _:get_member_game
#define GetGameMemberAsFloat Float:get_member_game

WPMGPRoSToTeMa avatar Feb 26 '17 21:02 WPMGPRoSToTeMa