Donation Coins

Results 1 to 7 of 7
  1. #1
    I am THE DON Joe9099 is offline
    MemberRank
    Jan 2007 Join Date
    England, UkLocation
    3,655Posts

    Donation Coins

    Hey guys, just wanting some help with something kinda annoying..
    Right i have got the Paypal script from Asumi, which so far works great EXCEPT one thing, it dont send the coins to the account once bought..

    It Does however get to the success.php page and show that you have bought them etc and gives that code blalbalba, but the coins just dont send...

    I use the Login table and have a column called euCoins, in which i think this script already (Default) updates that column with the coins..

    Anyone know my problem?
    Thanks.


  2. #2
    Venture Adventure Tyler is offline
    LegendRank
    Nov 2008 Join Date
    United KingdomLocation
    4,443Posts

    Re: Donation Coins

    May I see the script?

  3. #3
    I am THE DON Joe9099 is offline
    MemberRank
    Jan 2007 Join Date
    England, UkLocation
    3,655Posts

    Re: Donation Coins

    u can download it somewhere lawl, search paypal and you get a topic made by asumi and its there...

    But yea, anyone know the problem?

  4. #4
    mikethemak is offline
    MemberRank
    Apr 2008 Join Date
    Ragezone Spam SectionLocation
    1,019Posts

    Re: Donation Coins

    It's easier if you just list the script. You need to add somehwere (Where you want it to add the coins, ie: After you get the success message) a php script giving mssql to update your coins.


    Example:

    mssql_query("UPDATE Account SET euCoins= euCoins + 1 WHERE UserID='".$_SESSION['username']."'");

    (I didnt test that, nor is it perfect, but its the base of what you need, you should be able to figure it out from that.)

  5. #5
    I am THE DON Joe9099 is offline
    MemberRank
    Jan 2007 Join Date
    England, UkLocation
    3,655Posts

    Re: Donation Coins

    mssql_query("UPDATE Login SET euCoins='euCoins + $amount' WHERE UserID='$account'");

    Dont work lol its in the ipn_success.php

  6. #6

    Re: Donation Coins

    Quote Originally Posted by Joe9099 View Post
    mssql_query("UPDATE Login SET euCoins='euCoins + $amount' WHERE UserID='$account'");

    Dont work lol its in the ipn_success.php
    Code:
    /** Fix by Linear88. Please do not remove. **/
    mssql_query("UPDATE Login SET euCoins=euCoins + '$amount' WHERE UserID='$account'");
    Try this one.
    Last edited by Linear88; 27-10-09 at 09:03 AM.

  7. #7
    I am THE DON Joe9099 is offline
    MemberRank
    Jan 2007 Join Date
    England, UkLocation
    3,655Posts

    Re: Donation Coins

    Strange, nothing still works, anyone else got this problem with asumi's buy coins script?

    Anyone wanna test it for me lawl?

    Thanks anyway linear, <3



Advertisement