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
Next.Kill
New Member
Join Date: May 2013
Old 05-23-2013 , 17:17   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.5.0
Reply With Quote #431

I think I have found a bug. If I try to withdraw or deposit "ALL", it will only 0$ or 1.000$ booked.

Game: CSS
SM: 1.6.0-hg3921
MM: 1.10.0-hg839
Next.Kill is offline
Miraculix
Senior Member
Join Date: Dec 2009
Location: Germany
Old 05-29-2013 , 08:56   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.5.0
Reply With Quote #432

Is this only at "ALL"? Or the same at "all"? (case-sensitive)
__________________
greeetz Miraculix ;-)
Miraculix is offline
nvn
Junior Member
Join Date: Aug 2010
Old 05-29-2013 , 13:51   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.5.0
Reply With Quote #433

there is a bug money.sp/TransferClientMoney function
Code:
...
deposit = deposit > cvmaxtransfer ? cvmaxtransfer : deposit;
...
deposit will be allways 0 , if we have cvmaxtransfer = 0 => we will get "Sorry you have no money in bank" every time

CreateConVar("css_bank_transfer_limit","0"," ..... 0 for no limit.....

if we add check like

Code:
if(cvmaxtransfer > 0)
        deposit = deposit > cvmaxtransfer ? cvmaxtransfer : deposit;
everything will work fine
nvn is offline
Miraculix
Senior Member
Join Date: Dec 2009
Location: Germany
Old 05-29-2013 , 14:26   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.5.1
Reply With Quote #434

Update to v1.5.1

Changelog:
Code:
1.5.1 (2013-05-29)
    ** Fixed: css_bank_transfer_limit "0" not working - thanks to nvn
__________________
greeetz Miraculix ;-)
Miraculix is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 09-01-2013 , 12:16   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.5.0
Reply With Quote #435

Quote:
Originally Posted by haeufi View Post
Could somebody rewrite this plugin so we could use one database for both css and csgo-servers?

At the Moment there are two entries for STEAM_0:yyyyyyy and STEAM_1:yyyyyyy which is the same account, but 0 is for css, 1 is for csgo....

I think this must be easy for someone who is able to code SourcePawn....

It would be very very good to have one database for css and csgo-servers...
Here. This version replaced the STEAM_1 to STEAM_0 and this works.

Converter coming soon...
Attached Files
File Type: zip cssbank.zip (55.8 KB, 78 views)
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.

Last edited by Bara; 09-01-2013 at 12:36.
Bara is offline
raiden_it
Member
Join Date: Aug 2011
Old 09-02-2013 , 09:56   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.5.0
Reply With Quote #436

Quote:
Originally Posted by Next.Kill View Post
I think I have found a bug. If I try to withdraw or deposit "ALL", it will only 0$ or 1.000$ booked.

Game: CSS
SM: 1.6.0-hg3921
MM: 1.10.0-hg839
confirm
Quote:
Originally Posted by Miraculix View Post
Is this only at "ALL"? Or the same at "all"? (case-sensitive)
Using bank menu

Last edited by raiden_it; 09-02-2013 at 09:57.
raiden_it is offline
raiden_it
Member
Join Date: Aug 2011
Old 09-02-2013 , 10:03   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.5.1
Reply With Quote #437

Can you add logging support? Something like:

cssbank_20130902.log:
Code:
L 09/02/2013 - 17:58:25: Noobzilla (STEAM_0:0:618371687) has transfer to WTyPMoBuk (STEAM_0:0:31026321) 128 000 money
raiden_it is offline
Miraculix
Senior Member
Join Date: Dec 2009
Location: Germany
Old 09-02-2013 , 13:06   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.5.1
Reply With Quote #438

Quote:
Originally Posted by raiden_it View Post
Quote:
Originally Posted by Next.Kill View Post
I think I have found a bug. If I try to withdraw or deposit "ALL", it will only 0$ or 1.000$ booked.

Game: CSS
SM: 1.6.0-hg3921
MM: 1.10.0-hg839
confirm

Quote:
Originally Posted by Miraculix View Post
Is this only at "ALL"? Or the same at "all"? (case-sensitive)
Using bank menu
Thanks for reply. I'll look at it.


Quote:
Originally Posted by raiden_it View Post
Can you add logging support? Something like:

cssbank_20130902.log:
Code:
L 09/02/2013 - 17:58:25: Noobzilla (STEAM_0:0:618371687) has  transfer to WTyPMoBuk (STEAM_0:0:31026321) 128 000 money
Should be possible to log transfers.

@Bara: I've planned to strip the STEAM_0: and STEAM_1: respectively to afford cross-game compatibility. But havn't done yet.
__________________
greeetz Miraculix ;-)

Last edited by Miraculix; 09-02-2013 at 13:11.
Miraculix is offline
raiden_it
Member
Join Date: Aug 2011
Old 09-03-2013 , 12:31   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.5.1
Reply With Quote #439

Please. Do so interest did not work when the player is in the spectator or add cvar disabling it. It is very important.
raiden_it is offline
Miraculix
Senior Member
Join Date: Dec 2009
Location: Germany
Old 09-03-2013 , 15:20   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.5.1
Reply With Quote #440

Spectators shouldn't earn interest!
But I'll check it again.
__________________
greeetz Miraculix ;-)
Miraculix 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 19:32.


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