Thread
:
Advertisements - MySQL Updated 2/5/09
View Single Post
Rikaelus
Junior Member
Join Date: Aug 2004
05-09-2010 , 06:29 Re: Advertisements - MySQL Updated 2/5/09
#
310
Found another minor bug causing periodic double messages, but easily fixed. I believe it's caused by OnMapStart/SetupAds periodically being called after ConVarChange_Interval, if a custom time interval is set in a conf file.
Because SetupAds doesn't check to see if hTimer has been set already, it sets it a second time, causing two timer rotations to live simultaneously.
Simply adding the following code to SetupAds avoids the doubling.
if (hTimer != INVALID_HANDLE)
{
KillTimer(hTimer)
}
EDIT:
Okay... don't do this. I'm not sure why but... while this fixes the problem listed above... for some reason the timer breaks when the map changes. No idea why. For now I've disabled it in my code rather than try to fix it, since the original problem was minor, anyway.
Last edited by Rikaelus; 05-16-2010 at
03:23
.
Rikaelus
View Public Profile
Send a private message to Rikaelus
Find More Posts by Rikaelus