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

SM Bank Mod: MySQL


Post New Thread Reply   
 
Thread Tools Display Modes
KeLcO
Junior Member
Join Date: Oct 2008
Old 12-26-2008 , 18:55   Re: SM Bank Mod: MySQL
Reply With Quote #171

Hi Nican,

I use the mysql manager and bank plugin, but i get the following error msg in my sourcemod logs..

Quote:
sm_db_manager "4.2"
smbank_sql_version "3.0"
Quote:
L 12/26/2008 - 23:58:22: [SM] [0] Line 189, /home/groups/alliedmodders/forums/files/9/4/4/3/32612.attach::T_NewClientConnected()
L 12/26/2008 - 23:597: [bank.smx] Query failed! Unknown column 'money' in 'field list'
L 12/26/2008 - 23:597: [SM] Native "SQL_FetchRow" reported: Invalid query Handle 0 (error: 4)
L 12/26/2008 - 23:597: [SM] Displaying call stack trace for plugin "bank.smx":
thats my databases.cfg

Quote:
"Databases"
{
"driver_default" "mysql"

"default"
{
"driver" "mysql"
"host" "lanparty-wmk.de"
"database" "sm"
"user" "xx"
"pass" "xx"
"timeout" "60"
"port" "3306"
}

"storage-local"
{
"driver" "sqlite"
"database" "sourcemod-local"
}
}
what should i have to do?

There are two clomuns on my msql server which called:


Quote:
sm_users
-id
-steam

sm_info_i
-key
-value
But no entries!
Best regards

KeLcO
__________________


Last edited by KeLcO; 12-26-2008 at 19:06.
KeLcO is offline
bzz0
Senior Member
Join Date: Oct 2005
Location: Latvia, Riga
Old 01-04-2009 , 16:54   Re: SM Bank Mod: MySQL
Reply With Quote #172

same here
__________________
Let's make it better
bzz0 is offline
foenetik
Junior Member
Join Date: Nov 2008
Old 01-28-2009 , 21:54   Re: SM Bank Mod: MySQL
Reply With Quote #173

Hello,

I have the same problem as Kelco...

pls help..
__________________
foenetik is offline
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 02-12-2009 , 16:07   Re: SM Bank Mod: MySQL
Reply With Quote #174

I have found a bug.
On line 107.

Code:
LogMessage("[SM Bank] DB configuration '%s' does not exist, using default.");
You forgot to add the parameter for %s.
__________________
SWAT_88 is offline
DrToT
Junior Member
Join Date: Jul 2008
Location: Berlin (Germany)
Old 02-21-2009 , 06:37   Re: SM Bank Mod: MySQL
Reply With Quote #175

Hallo

I have this error logs and I don't know what I can do to fix it

Code:
[bank.smx] Database failure: [2013]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111
 [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
 [SM] Displaying call stack trace for plugin "bank.smx":
 [SM] [0] Line 158, bank.sp::OnClientPostAdminCheck()
 [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
 [SM] Displaying call stack trace for plugin "bank.smx":
 [SM] [0] Line 158, bank.sp::OnClientPostAdminCheck()
 [SM] Native "SQL_FastQuery" reported: Invalid database Handle 0 (error: 4)
 [SM] Displaying call stack trace for plugin "bank.smx":
 [SM] [0] Line 211, bank.sp::SaveClientInfo()
 [SM] [1] Line 313, bank.sp::EventRoundStart()
The database will found but there are no information in it
ther will donīt create table or anythng there

here my database.cfg

Code:
"Databases"
{
"driver_default" "mysql"
"default"
{
"driver" "default"
"host" "87.106.***.***"
"database" "CSS"
"user" "***"
"pass" "***"
"timeout" "60"
"port" "3306"
}
 
"bank"
{
"driver" "default"
"host" "87.106.***.***"
"database" "CSS"
"user" "***"
"pass" "***"
"timeout" "60"
"port" "3306"
}
"storage-local"
{
"driver" "sqlite"
"database" "sourcemod-local"
}
"clientprefs"
{
"driver" "sqlite"
"host" "localhost"
"database" "clientprefs-sqlite"
"user" "root"
"pass" ""
//"timeout" "0"
//"port" "0"
}
}
I use for dthe plugin the block with the name "bank"

Thx for help i donīt what I have to do
DrToT is offline
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 02-21-2009 , 14:11   Re: SM Bank Mod: MySQL
Reply With Quote #176

That seems to be a MySQL error. Not a plugin error.

I did some search on google about 'reading initial communication packet' and apparently it is caused by bad connection between the MySQL server and the MySQL client, but I am not exactly sure how to fix it.
__________________
http://www.nican132.com
I require reputation!
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
DrToT
Junior Member
Join Date: Jul 2008
Location: Berlin (Germany)
Old 02-21-2009 , 17:28   Re: SM Bank Mod: MySQL
Reply With Quote #177

Thank you for your fast answer.

I will look waht I can do for this at last I know for what I have to concentrate.
DrToT is offline
KeLcO
Junior Member
Join Date: Oct 2008
Old 03-06-2009 , 03:30   Re: SM Bank Mod: MySQL
Reply With Quote #178

Hey Nican,

do you continue your work on this plugin? I can do what i want but theres no way to keep this bank and mysql manager plugin running!

Best regards
__________________

KeLcO is offline
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 03-06-2009 , 06:54   Re: SM Bank Mod: MySQL
Reply With Quote #179

I don't understand your question.
I removed the requirement of the mysql manager a long time ago.
__________________
http://www.nican132.com
I require reputation!
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
oidani
New Member
Join Date: Jan 2009
Old 03-24-2009 , 18:28   Re: SM Bank Mod: MySQL
Reply With Quote #180

Hi Nican and all others,

nice Plugin you have posted here. I have installed it and it works fine. Now i want that the Money is saved into a mysql database.

My databases.cfg
Quote:
"Databases"
{
"driver_default" "mysql"
"default"
{
"driver" "default"
"host" "localhost"
"database" "sourcemod"
"user" "xxx"
"pass" "xxx"
//"timeout" "0"
//"port" "0"

}
mysql shows me four tables:
sm_cookie_cache
sm_info_i
sm_cookies
sm_users

No error.log under /addons/sourcemod/logs

I hope someone can help me
Thanks!
oidani 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:28.


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