mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[bot] Implement/match CScriptTimers::Delete(...)
This commit is contained in:
parent
c1d02b9ab0
commit
4c3bfe503f
@ -78,6 +78,20 @@ DWORD CScriptTimers::New(char* szScriptFunc, int iInterval, BOOL bRepeating, AMX
|
|||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
void CScriptTimers::Delete(DWORD dwTimerId)
|
||||||
|
{
|
||||||
|
DwordTimerMap::iterator itor;
|
||||||
|
itor = m_Timers.find(dwTimerId);
|
||||||
|
if (itor != m_Timers.end())
|
||||||
|
{
|
||||||
|
FreeMem(itor->second);
|
||||||
|
SAFE_DELETE(itor->second);
|
||||||
|
m_Timers.erase(itor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------------
|
||||||
|
|
||||||
void CScriptTimers::Kill(DWORD dwTimerId)
|
void CScriptTimers::Kill(DWORD dwTimerId)
|
||||||
{
|
{
|
||||||
DwordTimerMap::iterator itor;
|
DwordTimerMap::iterator itor;
|
||||||
|
@ -29,6 +29,7 @@ public:
|
|||||||
|
|
||||||
void DeleteForMode(AMX* pEndedAMX);
|
void DeleteForMode(AMX* pEndedAMX);
|
||||||
DWORD New(char* szScriptFunc, int iInterval, BOOL bRepeating, AMX* pAMX);
|
DWORD New(char* szScriptFunc, int iInterval, BOOL bRepeating, AMX* pAMX);
|
||||||
|
void Delete(DWORD dwTimerId);
|
||||||
void Kill(DWORD dwTimerId);
|
void Kill(DWORD dwTimerId);
|
||||||
void FreeMem(ScriptTimer_s* Timer);
|
void FreeMem(ScriptTimer_s* Timer);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user