Raised This Month: $ Target: $400
 0% 

[HELP] SQL Problem.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
unSeen
Member
Join Date: Sep 2008
Old 04-16-2009 , 06:59   [HELP] SQL Problem.
Reply With Quote #1

Hey all..
I have a plugin that connects on plugin init to MySQL,
Now - because that he gets the SQL details from cvars (amx_sql , etc..),
And they are definied only after the plugins starts and running,
It returns an Error, and because of that the plugin ends and If I want to make it work, I have to change the server map or restart..

Any ideas?
Thanks in advanced,
Elad.
__________________
List of important things:
1. Respect you'r mother.
2. Respect you'r father.
3. Do not hit anyone.
4. Do not steal.
5. Do not flame.
7. You didn't see that there is no number 6.
8. You checked if number 7 is true.
9. You are laughing now.
10. You are double laughing because you understand the joke ;)

Last edited by unSeen; 04-16-2009 at 07:02.
unSeen is offline
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 04-16-2009 , 10:32   Re: [HELP] SQL Problem.
Reply With Quote #2

You could try saving the SQL CVars into a text file.
Read from the file at game-start, and whenever the cvar gets changed rewrite to the file with the new data.

Convoluted, maybe, but it may work better.

Also, you missed important thing #9 - learn to use the fucking apostrophe correctly.
purple_pixie 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 02:16.


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