SQL and Create KeyValue in databases.cfg
HI people. I'm in really big trouble.
I searched day and night without sleeping. now I am discouraged. but at the last, I can ask you guys so I am writing this post. nowadays I am making a .smx file that using SQL with 'SQL_ConnectCustom'. and SQL_TQuery at first, nothing just happened. but recently I found a problem. SQL_ConnectCustom is a non-threaded but SQL_TQuery is a threaded one. so they crash in server. So I thought that I should make keyvalue in databases.cfg and delete it after the connection. because i can't show database information. and use SQL_TConnect instead SQL_ConnectCustom. I searched here and there, but I wasted my time. the keyvalue was made but not deleted and the plugin didn't work PHP Code:
so I am threading this post. can anyone help me? Is there any way to make keyvalue in databases.cfg and delete it right after the connection? |
Re: SQL and Create KeyValue in databases.cfg
Quote:
PHP Code:
so i suggest that you make some keynames before setting keys |
Re: SQL and Create KeyValue in databases.cfg
Quote:
no. In api, it is said that it makes subkey "" if i write true there. and it's made but not working. and even not deleted |
Re: SQL and Create KeyValue in databases.cfg
Quote:
|
Re: SQL and Create KeyValue in databases.cfg
Quote:
the KeyValues are made very well. but when SQL_TConnect success to connect or not, it deletes the databases.cfg. and everytime it tried to connect to SQL, it creates KeyValues and delete it. but though it falied to connect showing me such database conf is not exist though SQL_ConnectCustom is used on OnPluginStart(), it crashes because many server use the same connection. I mean SQL_ConnectCustom in B server can crash with SQL_TQuery in A server. isn't it? |
Re: SQL and Create KeyValue in databases.cfg
Quote:
|
Re: SQL and Create KeyValue in databases.cfg
1. I don't think it's really hard to get sensitive data out of smx.
2. By distributing your plugin in compiled form only you violate GPL. |
Re: SQL and Create KeyValue in databases.cfg
Quote:
. |
Re: SQL and Create KeyValue in databases.cfg
Also the databases.cfg is parsed and cached on map start, so modifying it right prior connection won't find your newly added connection section.
You should consider writing a php script which serves the information needed and have your plugin just call the file from your webhost. Maybe add some licence keys and request limitations to stop spammers. |
Re: SQL and Create KeyValue in databases.cfg
Quote:
Now I've gotta find something related php. do you have any related website? |
All times are GMT -4. The time now is 05:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.