Raised This Month: $51 Target: $400
 12% 

Error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zajim
BANNED
Join Date: Feb 2011
Location: The Russian Federation
Old 02-09-2011 , 12:55   Re: Error
Reply With Quote #1

Quote:
L 02/09/2011 - 20:44:41: SourceMod error session started
L 02/09/2011 - 20:44:41: Info (map "de_dust2") (file "errors_20110209.log")
L 02/09/2011 - 20:44:41: [SM] Unable to load extension "clientprefs.ext": Could not find "clientprefs" or "default" database configs (important)
L 02/09/2011 - 20:44:41: [SM] Unable to load plugin "clientprefs.smx": Required extension "Client Preferences" file("clientprefs.ext") not running
L 02/09/2011 - 20:48:24: [SM] Displaying call stack trace for plugin "Myplugin.smx"
L 02/09/2011 - 20:487: [SM] Native "KillTimer" reported: Invalid timer handle cd00c8 (error 3)
L 02/09/2011 - 20:487: [SM] [0] Line 462, E:\sourcemod\scripting\gprops.sp::Event_Round End()
PHP Code:
public Event_RoundEnd(Handle:event, const String:name[], bool:dontBroadcast) {
(
461)    if (hTimer != INVALID_HANDLE)
(
462)        KillTimer(hTimer); 

How to fix it?

Last edited by Zajim; 02-09-2011 at 13:04.
Zajim is offline
honorcode23
BANNED
Join Date: Mar 2010
Location: Chile
Old 02-09-2011 , 20:10   Re: Error
Reply With Quote #2

KillTimer(hTimer) -> It wont se hTimer as INVALID_HANDLE, you gotta do that manually.
honorcode23 is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 02-10-2011 , 07:56   Re: Error
Reply With Quote #3

Edit your databases.cfg.
__________________
FaTony is offline
Zajim
BANNED
Join Date: Feb 2011
Location: The Russian Federation
Old 02-10-2011 , 12:04   Re: Error
Reply With Quote #4

Quote:
Originally Posted by honorcode23 View Post
KillTimer(hTimer) -> It wont se hTimer as INVALID_HANDLE, you gotta do that manually.
How do it.
Zajim is offline
honorcode23
BANNED
Join Date: Mar 2010
Location: Chile
Old 02-10-2011 , 12:28   Re: Error
Reply With Quote #5

Quote:
Originally Posted by Zajim View Post
How do it.
hTimer = INVALID_HANDLE;
honorcode23 is offline
Zajim
BANNED
Join Date: Feb 2011
Location: The Russian Federation
Old 02-11-2011 , 01:13   Re: Error
Reply With Quote #6

PHP Code:
public Action:RStart(Handle:event, const String:name[], bool:dontBroadcast) {
    
hTimer CreateTimer(1.0gPropsRoundTimerActions_TIMER_REPEAT);
}

public 
Action:REnd(Handle:event, const String:name[], bool:dontBroadcast) {
    
hTimer INVALID_HANDLE;
        if(
hTimer == INVALID_HANDLE)
                
KillTimer(hTimer);

Right or not?)
Zajim is offline
miniman
Senior Member
Join Date: Aug 2009
Location: Israel
Old 02-11-2011 , 01:16   Re: Error
Reply With Quote #7

no first kill it then clear it
miniman is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 02-11-2011 , 03:39   Re: Error
Reply With Quote #8

PHP Code:
    if(hTimer != INVALID_HANDLE)
    {
        
KillTimer(hTimer);
        
hTimer INVALID_HANDLE;
    } 
__________________
Leonardo is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode