Quote:
Originally Posted by Neuro Toxin
New syntax.
Code:
stock bool ClearTimer(Timer timer) {
if(timer != null) {
delete timer;
timer = null;
return true;
}
return false;
}
Your error message doesnt match your code. ClearTimer is just closing a handle. It doesnt care about what type of handle is parsed.
Provide the actual error and its stack trace.
|
Code:
stock bool ClearTimer(Timer timer) {
You mean this, right?
Code:
stock bool ClearTimer(Timer &timer) {
Edit: For that matter, just scrap the whole stock and use delete instead.
__________________