AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] SQL Problem. (https://forums.alliedmods.net/showthread.php?t=90286)

unSeen 04-16-2009 06:59

[HELP] SQL Problem.
 
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.

purple_pixie 04-16-2009 10:32

Re: [HELP] SQL Problem.
 
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.


All times are GMT -4. The time now is 02:16.

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