Raised This Month: $18 Target: $400
 4% 

[INC] Bank


Post New Thread Reply   
 
Thread Tools Display Modes
eyal282
Veteran Member
Join Date: Aug 2011
Old 04-08-2018 , 16:04   Re: [INC] Bank
Reply With Quote #41

Quote:
Originally Posted by Arkarr View Post
I added something, now when the database is ready, this code will fire :
PHP Code:
public void Bank_DatabaseReady()
{
    
//Database connected and ready
        //Do your stuff that require bank after this has been fired.

I will use Bank_Create in Bank_DatabaseReady, not OnPluginStart like your test file.
__________________
Accepting private work. Contact me if you're interested.
If you like my work, feel free to donate in appreciation with PayPal or CSGO Skins.

Total Donated: 10$
eyal282 is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 04-09-2018 , 06:02   Re: [INC] Bank
Reply With Quote #42

I think the bank fails to both create a user and change his balance at once, either one gets done and the first change of balance fails.
__________________
Accepting private work. Contact me if you're interested.
If you like my work, feel free to donate in appreciation with PayPal or CSGO Skins.

Total Donated: 10$
eyal282 is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 04-09-2018 , 07:26   Re: [INC] Bank
Reply With Quote #43

Quote:
Originally Posted by eyal282 View Post
I think the bank fails to both create a user and change his balance at once, either one gets done and the first change of balance fails.
I'll do a few test tonight.
__________________
Arkarr is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 04-09-2018 , 14:50   Re: [INC] Bank
Reply With Quote #44

Yeah, no. It's working fine. See the exemple plugin and "test crash" command.
__________________
Arkarr is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 04-09-2018 , 15:30   Re: [INC] Bank
Reply With Quote #45

Quote:
Originally Posted by Arkarr View Post
Yeah, no. It's working fine. See the exemple plugin and "test crash" command.
Perhaps the database has the issues?
__________________
Accepting private work. Contact me if you're interested.
If you like my work, feel free to donate in appreciation with PayPal or CSGO Skins.

Total Donated: 10$
eyal282 is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 04-09-2018 , 15:36   Re: [INC] Bank
Reply With Quote #46

Quote:
Originally Posted by eyal282 View Post
Perhaps the database has the issues?
I don't know what's your database setup.
__________________
Arkarr is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 04-10-2018 , 08:08   Re: [INC] Bank
Reply With Quote #47

Quote:
Originally Posted by Arkarr View Post
I don't know what's your database setup.
Alright, thanks for the snippet
__________________
Accepting private work. Contact me if you're interested.
If you like my work, feel free to donate in appreciation with PayPal or CSGO Skins.

Total Donated: 10$
eyal282 is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 04-10-2018 , 11:01   Re: [INC] Bank
Reply With Quote #48

Quote:
Originally Posted by eyal282 View Post
Alright, thanks for the snippet
I hope I helped you.
__________________
Arkarr is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 04-18-2018 , 06:09   Re: [INC] Bank
Reply With Quote #49

You should make it possible to push all clients online and offline into a dynamic array.
__________________
Accepting private work. Contact me if you're interested.
If you like my work, feel free to donate in appreciation with PayPal or CSGO Skins.

Total Donated: 10$
eyal282 is offline
iGANGNAM
AlliedModders Donor
Join Date: Sep 2012
Location: Lithuania
Old 05-08-2020 , 12:09   Re: [INC] Bank
Reply With Quote #50

It's bad for production. It doesn't cache any data, mysql queries blocks whole server thread (var increase)
I had this plugin for few currency platform, but turn out after 50k db entries I have to rewrite whole thing....
__________________

Last edited by iGANGNAM; 05-08-2020 at 12:10.
iGANGNAM is offline
Reply


Thread Tools
Display Modes

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 21:57.


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