View Single Post
Author Message
201724
Member
Join Date: May 2011
Old 02-06-2012 , 01:43   Fixed SQL_ThreadQuery Server Pause
Reply With Quote #1

I don't compile mysql_amxx so write the module

if player connect use SQL_ThreadQuery Read Access

If the replacement map when players enter WaitForWingleObject unable to return will result in

the module fix the bug

add amxx the code
native StopThread();
public plugin_end()
{
StopThread();
}


please delete old code and add the code2 function)

static cell AMX_NATIVE_CALL StopThread(AMX *amx, cell *params)
{
if(ThreadSaves)
{
TerminateThread(ThreadSaves,0);
CloseHandle(ThreadSaves);
ThreadSaves = NULL;
return 1;
}
return 0;
}

VOID OnAmxxDetach()
{
cbThread->UnInstallApiHook();
if(ThreadSaves)
{
TerminateThread(ThreadSaves,0);
CloseHandle(ThreadSaves);
ThreadSaves = NULL;
}
}
Attached Files
File Type: zip PatchMySQL.zip (102.8 KB, 339 views)

Last edited by 201724; 02-19-2012 at 04:02.
201724 is offline
Send a message via MSN to 201724