DonationClaim

Players can claim rewards for automatic PayPal donations

Total Downloads: 357 - First Release: May 20, 2016 - Last Update: Nov 10, 2016

5/5, 6 likes
  1. goes plugin or are there still mistake in it
     
  2. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Should be working fine, there were some suggestions in this thread as well.
     
  3. what's the names from the two two PHP files. ?

    MySQLCredentials.php is this code ?

    <?php

    $dbusername='root';//db username
    $dbpassword='yourpassword';//db password
    $dbhost='localhost';//db host
    $dbname='rusterver';//db name

    ?>

    and the
    second php name and code ?
     
  4. how can I add items there ?

    ],
    "VIP": [
    "grant user {0} some.permission",
    "grant user {0} another.permission"
    ],
    "Resource Kit S": [
    }
    }
     
  5. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Which part... the permissions or the kits?
     
  6. That goes with kits ? can you help me as I get a kit insert . Do I have to also create a new group ?
     
  7. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    All it does is run console commands that you have setup. The name of the package "VIP" is the default, which needs to match what you have setup with PayPal per what the Overview states:
     
  8. ok and VIP is a Group ?

    I have a Resource Kit S via paypal and this name
    must in the config
     
  9. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    It is whatever you have for your PayPal item_name, it's not a group, it's a PayPal package.
     
  10. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    That link doesn't work for me.
     
  11. ...ok i look
    --- Double Post Merged, Jul 26, 2016 ---
    Resource KiT S
     
  12. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    That's not an actual item and package, that's just the name of your PayPal "organization", you'd need to have an actual cart with items.
     
  13. Code (Text):
    [Oxide] 9:45 PM [Error] MySql handle raised an exception in 'DonationClaim v1.0.0' plugin (MySqlException: PROCEDURE db_xxxxxx_1.claim_donation does not exist)
    (21:45:32) | [Oxide] 9:45 PM [Debug] at MySql.Data.MySqlClient.MySqlStream.ReadPacket () [0x00000] in <filename unknown>:0
    at MySql.Data.MySqlClient.NativeDriver.GetResult (System.Int32& affectedRow, System.Int64& insertedId) [0x00000] in <filename unknown>:0
    (21:45:32) | [Oxide] 21:45 [Error] MySql command callback raised an exception (NullReferenceException: Object reference not set to an instance of an object)
    (21:45:32) | [Oxide] 21:45 [Debug] at Oxide.Plugins.DonationClaim+<ChatCommand>c__AnonStorey0.<>m__0 (System.Collections.Generic.List`1 list) [0x00000] in <filename unknown>:0
    at Oxide.Ext.MySql.Libraries.MySql+MySqlQuery+<Handle>c__AnonStorey0.<>m__0 () [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Jul 26, 2016
  14. George S

    George S Naked Wanderer

    when I write in chat "/claim test@mail.ru"

    get the error:
    Code (Text):
    22:52 [Error] MySql command callback raised an exception (FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.)
    22:52 [Debug]   at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
      at System.String.Format (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
      at System.String.Format (System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.DonationClaim.Lang (System.String key, System.String id, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.DonationClaim+<ChatCommand>c__AnonStorey0.<>m__0 (System.Collections.Generic.List`1 list) [0x00000] in <filename unknown>:0
      at Oxide.Ext.MySql.Libraries.MySql+MySqlQuery+<Handle>c__AnonStorey0.<>m__0 () [0x00000] in <filename unknown>:0
    What to watch, what to show?
     
    Last edited by a moderator: Jul 26, 2016
  15. Neonic_State

    Neonic_State Naked Wanderer

    First, does it update the item in the database as claimed despite the error message? If it does, as I believe it has, then this is the Lang issue I was referring to before @Wulf.

    George, please execute the stored procedure server side using a fresh IPN generated entry. That's another way to confirm it isn't the MySQL as that error suggests.
     
  16. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Yeah, meant to post that.
     
  17. Wulf

    Wulf Community Admin Community Admin Oxide Developer