Donation Credits

Rewards players with Economy credits for donations on a website

Total Downloads: 690 - First Release: Feb 23, 2016 - Last Update: Jan 22, 2018

5/5, 7 likes
  1. Well....depends which way you want to take donations really, there is more than 1 way to beat a bush
     
  2. i have this problem
    [​IMG]

    Code:
    26:     private Plugin Economics;
    27:     private Dictionary<ulong, double> Balances = new Dictionary<ulong, double>();
    28:     private readonly Ext.MySql.Libraries.MySql _mySql = new Ext.MySql.Libraries.MySql();
    29:     private readonly Ext.SQLite.Libraries.SQLite _sqLite = new Ext.SQLite.Libraries.SQLite();
    30:     private Connection _mySqlConnection = null;
    31:     private Connection _sqLiteConnection = null;
    32:     public Dictionary<ulong, Dictionary<string, long>> playerList = new Dictionary<ulong, Dictionary<string, long>>();
    33:     bool packetSent = false;
    34:     private Timer _timer;
    
     
    Last edited by a moderator: Dec 10, 2016
  3. I have moved forward slightly and fix this bug, but i got another bug
    it is harder for me and I need somebody's help
     
    Last edited by a moderator: Mar 13, 2017
  4. my question is closed, I fixed the plugin, now it works
     
  5. Hey,

    I'm wanting to set up VIP kits onto my server, so that when someone makes a donation there is VIP kits available to them,

    how do i go about doing this from scratch?
     
    Last edited by a moderator: Mar 13, 2017
  6. OldeTobeh updated Donation Credits with a new update entry:

    1.1.0

     
  7. I split the GitHub repo for the Webcode into its own repository.

    Please remember to update your webcode with every new update release on GitHub.
     
  8. Code:
    10:42 AM [Error] MySql handle raised an exception in 'DonateCredits v1.1.0' plugin (MySqlException: Unable to connect to any of the specified MySQL hosts.)
      at MySql.Data.MySqlClient.NativeDriver.Open () [0x00000] in <filename unknown>:0
      at MySql.Data.MySqlClient.Driver.Open () [0x00000] in <filename unknown>:0
      at MySql.Data.MySqlClient.Driver.Create (MySql.Data.MySqlClient.MySqlConnectionStringBuilder settings) [0x00000] in <filename unknown>:0
    10:42 [Error] MySql command callback raised an exception (NullReferenceException: Object reference not set to an instance of an object)
      at Oxide.Plugins.DonateCredits.initPlayer (.BasePlayer player, System.Collections.Generic.Dictionary`2 statsInit, System.Collections.Generic.List`1 sqlData) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.DonateCredits+<loadUser>c__AnonStorey0.<>m__0 (System.Collections.Generic.List`1 list) [0x00000] in <filename unknown>:0
      at Oxide.Core.MySql.Libraries.MySql+MySqlQuery+<>c__DisplayClass24_0.<Handle>b__0 () [0x00000] in <filename unknown>:0
    Whats this mean? it seems to be working but i get this error message.
     
  9. Wulf

    Wulf Community Admin

    I means that the MySQL hostname you have set in your config isn't able to be connected to.