Raised This Month: $ Target: $400
 0% 

SQL_PrepareQuery Run Time Error 10


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-25-2011 , 02:06   Re: SQL_PrepareQuery Run Time Error 10
Reply With Quote #6

Players can connect during that time, calling the client_connect() forward before your connection to the database is made.
That is why you are getting your error.

Instead of setting a task, you can create a separate config file with the cvars and force it to execute it on plugin_init() then read the cvars values for the connection.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
 



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 19:46.


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