AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [INC] Bank (https://forums.alliedmods.net/showthread.php?t=294511)

eyal282 04-08-2018 16:04

Re: [INC] Bank
 
Quote:

Originally Posted by Arkarr (Post 2586769)
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.

eyal282 04-09-2018 06:02

Re: [INC] Bank
 
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.

Arkarr 04-09-2018 07:26

Re: [INC] Bank
 
Quote:

Originally Posted by eyal282 (Post 2586837)
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 04-09-2018 14:50

Re: [INC] Bank
 
Yeah, no. It's working fine. See the exemple plugin and "test crash" command.

eyal282 04-09-2018 15:30

Re: [INC] Bank
 
Quote:

Originally Posted by Arkarr (Post 2586932)
Yeah, no. It's working fine. See the exemple plugin and "test crash" command.

Perhaps the database has the issues?

Arkarr 04-09-2018 15:36

Re: [INC] Bank
 
Quote:

Originally Posted by eyal282 (Post 2586936)
Perhaps the database has the issues?

I don't know what's your database setup.

eyal282 04-10-2018 08:08

Re: [INC] Bank
 
Quote:

Originally Posted by Arkarr (Post 2586938)
I don't know what's your database setup.

Alright, thanks for the snippet :D

Arkarr 04-10-2018 11:01

Re: [INC] Bank
 
Quote:

Originally Posted by eyal282 (Post 2587031)
Alright, thanks for the snippet :D

I hope I helped you.

eyal282 04-18-2018 06:09

Re: [INC] Bank
 
You should make it possible to push all clients online and offline into a dynamic array.

iGANGNAM 05-08-2020 12:09

Re: [INC] Bank
 
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....


All times are GMT -4. The time now is 23:38.

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