Quote:
Originally Posted by GoD-Tony
Getting this in my error logs:
Code:
[SM] Native "CloseHandle" reported: Handle 190e0334 is invalid (error 3)
[SM] Displaying call stack trace for plugin "noblock.smx":
[SM] [0] Line 82, C:\Users\Hayden\Documents\Server Stuff\sourcemod-1.2.4\addons\sourcemod\scripting\noblock.sp::Event_OnPlayerSpawn()
|
Any word on a fix for this? It's spamming my error logs, and it's also causing some players to have permanent block on. I'll also add that it usually only happens when there are a large number of players in the server (30+).
Here is the function it's refering to in the error:
Code:
public Action:Event_OnPlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
new user_id = GetEventInt(event, "userid");
new entity = GetClientOfUserId(user_id);
if ( g_hTimer[entity] && ( g_hTimer[entity] != INVALID_HANDLE) )
{
CloseHandle(g_hTimer[entity]);
g_hTimer[entity] = INVALID_HANDLE;
PrintToChat(entity, "\x03[NoBlock] \x01Blocking has been Disabled because of respawn");
}
SetEntData(entity, g_CollisionOffset, 2, 4, true);
}
Does anything look blatantly wrong there?