Raised This Month: $ Target: $400
 0% 

[CS:S/CS:GO] CSS Bank (including MySQL support) v1.6.6


Post New Thread Reply   
 
Thread Tools Display Modes
Miraculix
Senior Member
Join Date: Dec 2009
Location: Germany
Old 05-03-2014 , 07:57   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.6.6
Reply With Quote #501

Update to v1.6.6

Changelog:
Code:
1.6.6 (2014-05-03)
    ** Fixed: Second pistolround(s) not working, with mp_halftime associated with mp_timelimit instead of mp_maxrounds.
    ** Fixed: Bug in check for old data. Whereby defaults like css_bank_default_bankmoney won't work.
__________________
greeetz Miraculix ;-)
Miraculix is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 07-07-2014 , 09:21   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.6.6
Reply With Quote #502

How do you backup the db??
8guawong is offline
Miraculix
Senior Member
Join Date: Dec 2009
Location: Germany
Old 07-07-2014 , 15:06   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.6.6
Reply With Quote #503

On default settings:
Save the clientprefs-sqlite.sq3 file from the addons/sourcemod/data/sqlite folder.
__________________
greeetz Miraculix ;-)
Miraculix is offline
rautamiekka
Veteran Member
Join Date: Jan 2009
Location: Finland
Old 07-08-2014 , 09:49   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.6.6
Reply With Quote #504

Quote:
Originally Posted by Miraculix View Post
Update to v1.6.6

Changelog:
Code:
1.6.6 (2014-05-03)
    ** Fixed: Second pistolround(s) not working, with mp_halftime associated with mp_timelimit instead of mp_maxrounds.
    ** Fixed: Bug in check for old data. Whereby defaults like css_bank_default_bankmoney won't work.
Excellent, excellent ! Glad to see the plugin isn't totally dead, and you fixed 2 rather annoying bugs, as that text implies. Good work.
__________________
Links to posts I received Karma from:
Big thanks to all who gave Karma

Last edited by rautamiekka; 07-08-2014 at 09:49.
rautamiekka is offline
Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
rautamiekka
Veteran Member
Join Date: Jan 2009
Location: Finland
Old 07-28-2014 , 15:35   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.6.6
Reply With Quote #505

I looked shit up for you, Miraculix:

SQLite supports SIGNED BIGINT as the largest integer, which means -9223372036854775808 <-> 9223372036854775807, that is -2**63 <-> 2**63-1. This is the limit regardless of database engine ...

However, MySQL supports, in addition to the SIGNED BIGINT, UNSIGNED BIGINT, which is 0 <-> 18446744073709551615, meaning 2**64-1. In either case, SIGNED or UNSIGNED, reaching that number by normal gaming means doesn't happen fast, but it's far better than the 2+ billion limit imposed by 32-bit integer. Not to mention spending all that money ...

There's still hope, though, although it's 32-bit: http://stackoverflow.com/questions/9...-integers-in-c

I'm sure you're better C++ coder than I am, so you should be able to figure this out. That link is for C++ on Linux, but it shouldn't be any different.
__________________
Links to posts I received Karma from:
Big thanks to all who gave Karma

Last edited by rautamiekka; 07-28-2014 at 15:35.
rautamiekka is offline
Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
rautamiekka
Veteran Member
Join Date: Jan 2009
Location: Finland
Old 07-31-2014 , 18:29   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.6.6
Reply With Quote #506

I see that Bank strips the 'STEAM_#:' from the Steam ID. Is that done for compatibility so that don't have to store IDs which have changed for different games ? Meaning, Steam ID is the same for CS:GO from the other games, but the first number is 1 instead of 0.
__________________
Links to posts I received Karma from:
Big thanks to all who gave Karma
rautamiekka is offline
Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
raiden_it
Member
Join Date: Aug 2011
Old 01-05-2015 , 15:33   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.6.6
Reply With Quote #507

I have a problem. After one player has rich the limit 2147483647 his account has zeroing.
I have v1.6.5 (2014-04-21) plugin version.
Can you help me?

Last edited by raiden_it; 01-05-2015 at 15:35.
raiden_it is offline
helpme_please
Senior Member
Join Date: Apr 2014
Old 04-23-2015 , 17:08   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.6.6
Reply With Quote #508

i think i find bug cheat.
some player can cheat money
sometime can spam money $50000 all round. i don't know maybe they deposit money and suicide!
or deposit money to bank and disconnect. join again to get $10000 if mp_startmoney $10000
helpme_please is offline
red4911
Senior Member
Join Date: Sep 2010
Location: Russia
Old 05-14-2015 , 13:01   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.6.6
Reply With Quote #509

Quote:
L 05/14/2015 - 16:43:12: SourceMod error session started
L 05/14/2015 - 16:43:12: Info (map "de_dust2") (file "errors_20150514.log")
L 05/14/2015 - 16:43:12: [cssbank.smx] [Bank] Query failure: Lost connection to MySQL server during query
L 05/14/2015 - 16:43:12: [cssbank.smx] [Bank] Query: UPDATE css_bank SET amount = 0, auto_deposit = 6000, auto_withdraw = 10000, plugin_message = 1, player_name = 'AgaSiQz', hide_rank = 0, last_accountuse = 1431610992 WHERE id = 1951;
L 05/14/2015 - 16:54:11: Error log file session closed.
L 05/14/2015 - 18:03:43: SourceMod error session started
L 05/14/2015 - 18:03:43: Info (map "de_dust2") (file "errors_20150514.log")
L 05/14/2015 - 18:03:43: [cssbank.smx] [Bank] Query failed! Lost connection to MySQL server during query
L 05/14/2015 - 18:03:43: [SM] Native "SQL_FetchRow" reported: Invalid query Handle 0 (error: 4)
L 05/14/2015 - 18:03:43: [SM] Displaying call stack trace for plugin "cssbank.smx":
L 05/14/2015 - 18:03:43: [SM] [0] Line 142, cssbank/database.sp::T_NewClientConnected()
L 05/14/2015 - 186:25: Error log file session closed.
L 05/14/2015 - 186:42: SourceMod error session started
L 05/14/2015 - 186:42: Info (map "de_dust2") (file "errors_20150514.log")
L 05/14/2015 - 186:42: [cssbank.smx] [Bank] Query failed! Lost connection to MySQL server during query
L 05/14/2015 - 186:42: [SM] Native "SQL_FetchRow" reported: Invalid query Handle 0 (error: 4)
L 05/14/2015 - 186:42: [SM] Displaying call stack trace for plugin "cssbank.smx":
L 05/14/2015 - 186:42: [SM] [0] Line 142, cssbank/database.sp::T_NewClientConnected()
L 05/14/2015 - 19:14:20: Error log file session closed.
red4911 is offline
pr3d4t0r
Member
Join Date: Oct 2005
Location: Hungary
Old 03-15-2016 , 17:07   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.6.6
Reply With Quote #510

I would like to use this with mysql, I configure the databases.cfg, the connection is up, tables are created, but the balances are reset after the mapchange and log files was flooded by these type of errors, like this:

L 03/15/2016 - 21:59:49: [cssbank.smx] [OUR BANK] Query failure: Field 'amount' doesn't have a default value
L 03/15/2016 - 21:59:49: [cssbank.smx] [OUR BANK] Query: INSERT INTO css_bank(steam_id, plugin_message, player_name, hide_rank) VALUES('0:109467077', 1, 'Tranduil', 0);

I see the problem is that the field doesn't have the default value, but how can I fix it to work? I need for mysql, because of I running more servers, and would like to use a shared bank.

Thanks!

Last edited by pr3d4t0r; 03-15-2016 at 17:09.
pr3d4t0r is offline
Send a message via Skype™ to pr3d4t0r
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 13:21.


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