Can someone help to resolve the error below? The error does not appear on every map, but when it does it spams the error log every 15 seconds or so....
Code:
L 05/13/2018 - 01:19:37: [SM] Exception reported: Invalid timer handle 930f411d (error 1)
L 05/13/2018 - 01:19:37: [SM] Blaming: spawnroommusic.smx
L 05/13/2018 - 01:19:37: [SM] Call stack trace:
L 05/13/2018 - 01:19:37: [SM] [0] KillTimer
L 05/13/2018 - 01:19:37: [SM] [1] Line 285, /home/forums/content/files/7/0/1/4/3/127575.attach::StopTimer
L 05/13/2018 - 01:19:38: [SM] [2] Line 149, /home/forums/content/files/7/0/1/4/3/127575.attach::OnRespawnRoomStartTouch
L 05/13/2018 - 01:19:38: [SM] Exception reported: Invalid timer handle 930f411d (error 1)
L 05/13/2018 - 01:19:38: [SM] Blaming: spawnroommusic.smx
L 05/13/2018 - 01:19:38: [SM] Call stack trace:
L 05/13/2018 - 01:19:38: [SM] [0] KillTimer
L 05/13/2018 - 01:19:38: [SM] [1] Line 285, /home/forums/content/files/7/0/1/4/3/127575.attach::StopTimer
L 05/13/2018 - 01:19:38: [SM] [2] Line 158, /home/forums/content/files/7/0/1/4/3/127575.attach::OnRespawnRoomEndTouch
L 05/13/2018 - 01:19:38: [SM] Exception reported: Invalid timer handle 930f411d (error 1)
L 05/13/2018 - 01:19:38: [SM] Blaming: spawnroommusic.smx
L 05/13/2018 - 01:19:38: [SM] Call stack trace:
L 05/13/2018 - 01:19:38: [SM] [0] KillTimer
L 05/13/2018 - 01:19:38: [SM] [1] Line 285, /home/forums/content/files/7/0/1/4/3/127575.attach::StopTimer
L 05/13/2018 - 01:19:38: [SM] [2] Line 158, /home/forums/content/files/7/0/1/4/3/127575.attach::OnRespawnRoomEndTouch
Here is the KillTimer part of the code that may be causing the issue:
PHP Code:
public OnRespawnRoomStartTouch( iSpawnRoom, iClient )
if( 0 < iClient <= MaxClients )
{
bInRespawn[iClient] = true;
StopTimer( hSndRepeater[iClient] );
if( iMethod == 2 )
SpawnSound( _, _, iClient );
}
public OnRespawnRoomEndTouch( iSpawnRoom, iClient )
if( 0 < iClient <= MaxClients )
{
bInRespawn[iClient] = false;
StopTimer( hSndRepeater[iClient] );
DeleteSounds( iClient );
}
stock StopTimer( &Handle:hTimer )
{
if( hTimer != INVALID_HANDLE )
KillTimer( hTimer );
hTimer = INVALID_HANDLE;
}