Having problem with mapvote not working in TF2 but working fine in CSS.
Someone showed this error:
Code:
L 05/18/2008 - 22:55:41: [SM] Native "KillTimer" reported: Invalid timer handle 7280077 (error 3)
L 05/18/2008 - 22:55:41: [SM] Displaying call stack trace for plugin "mapvote.smx":
L 05/18/2008 - 22:55:41: [SM] [0] Line 311, /home/srcds/tf/addons/sourcemod/scripting/include/voteManager.inc::VoteEnded()
L 05/18/2008 - 22:55:41: [SM] [1] Line 301, /home/srcds/tf/addons/sourcemod/scripting/include/voteManager.inc::VoteAction()
This is the only place where the variable in question is closed through KillTimer or CloseHandle and since it is tested with the if statment and then set to invalid after being closed I thought it would be bulletproof.
Code:
VoteEnded()
{
g_runningVote = false
if( g_ShowVotes_timer != INVALID_HANDLE )
{
KillTimer(g_ShowVotes_timer)
g_ShowVotes_timer = INVALID_HANDLE
}
}