Send cash for all player

Results 1 to 21 of 21
  1. #1
    Hunters dhenmas210 is offline
    MemberRank
    Jul 2019 Join Date
    IndonesiaLocation
    329Posts

    talk Send cash for all player

    Hi guys , please explain how to send cash to all member..
    Thank you..


  2. #2
    Member nughi is offline
    MemberRank
    Jan 2014 Join Date
    UndetectedLocation
    52Posts

    Re: Send cash for all player

    just insert into table cash

  3. #3
    free is my ninja way reiza48 is offline
    MemberRank
    Sep 2014 Join Date
    INDONESIALocation
    344Posts

    Re: Send cash for all player

    ALTER PROCEDURE [dbo].[_ALL_PLAYER_CASH_ADD_]

    @IntCashAmount nvarchar (10)

    AS
    /**For Looping**/

    DECLARE @accountID int = 0
    DECLARE @SelectPlayer int = (SELECT max(AccountID) FROM accounts);
    DECLARE @totalPlayer int = @SelectPlayer + 1;

    /**For Looping**/
    DECLARE @accountName nvarchar (50)

    /**For Looping**/
    WHILE @accountID <= @totalPlayer
    /**For Looping**/
    BEGIN
    /**For Looping**/
    SET @accountID = @accountID + 1;
    SET @accountName = (SELECT AccountName FROM Accounts where AccountID @accountID);
    /**For Looping**/
    EXEC dnmembership.dbo.P_AddCashIncome
    @accountName
    , 2
    , NULL
    , NULL
    , @IntCashAmount
    , 0

    END

  4. #4
    Valued Member AsliJowo is online now
    MemberRank
    Mar 2017 Join Date
    JpLocation
    149Posts

    Re: Send cash for all player

    LoL its your program ?
    Quote Originally Posted by reiza48 View Post
    ALTER PROCEDURE [dbo].[_ALL_PLAYER_CASH_ADD_]

    @IntCashAmount nvarchar (10)

    AS
    /**For Looping**/

    DECLARE @accountID int = 0
    DECLARE @SelectPlayer int = (SELECT max(AccountID) FROM accounts);
    DECLARE @totalPlayer int = @SelectPlayer + 1;

    /**For Looping**/
    DECLARE @accountName nvarchar (50)

    /**For Looping**/
    WHILE @accountID <= @totalPlayer
    /**For Looping**/
    BEGIN
    /**For Looping**/
    SET @accountID = @accountID + 1;
    SET @accountName = (SELECT AccountName FROM Accounts where AccountID @accountID);
    /**For Looping**/
    EXEC dnmembership.dbo.P_AddCashIncome
    @accountName
    , 2
    , NULL
    , NULL
    , @IntCashAmount
    , 0

    END

  5. #5
    free is my ninja way reiza48 is offline
    MemberRank
    Sep 2014 Join Date
    INDONESIALocation
    344Posts

    Re: Send cash for all player

    Quote Originally Posted by AsliJowo View Post
    LoL its your program ?
    from you bro

  6. #6
    Hunters dhenmas210 is offline
    MemberRank
    Jul 2019 Join Date
    IndonesiaLocation
    329Posts

    Re: Send cash for all player

    Thank you for sharing..

  7. #7
    Member nughi is offline
    MemberRank
    Jan 2014 Join Date
    UndetectedLocation
    52Posts

    Re: Send cash for all player

    Simple one
    use dnmembership
    INSERT CashIncome ( [AccountID], [CashIncomeCode], [PGCode], [PGKey], [CashAmount], [IncomeDate])
    select AccountID ,'2' ,NULL ,NULL ,'your amount here' ,GETDATE() from Accounts
    if you wanna make it scheduled just use agent
    note = you can modified with only online user which can received
    Last edited by nughi; 25-03-20 at 09:54 PM.

  8. #8
    Hunters dhenmas210 is offline
    MemberRank
    Jul 2019 Join Date
    IndonesiaLocation
    329Posts

    Re: Send cash for all player

    Quote Originally Posted by nughi View Post
    Simple one

    if you wanna make it scheduled just use agent
    note = you can modified with only online user which can received
    If wanna create a code coupons..?

  9. #9
    Member nughi is offline
    MemberRank
    Jan 2014 Join Date
    UndetectedLocation
    52Posts

    Re: Send cash for all player

    Quote Originally Posted by dhenmas210 View Post
    If wanna create a code coupons..?
    You can use in game feature to trace it

  10. #10
    Joke Time lightryuk12 is online now
    MemberRank
    Apr 2019 Join Date
    298Posts

    Re: Send cash for all player

    Can you Explain this Agent??

    Quote Originally Posted by nughi View Post
    Simple one

    if you wanna make it scheduled just use agent
    note = you can modified with only online user which can received

  11. #11
    Member nughi is offline
    MemberRank
    Jan 2014 Join Date
    UndetectedLocation
    52Posts

    Re: Send cash for all player

    Quote Originally Posted by lightryuk12 View Post
    Can you Explain this Agent??
    basicly like this

    https://ibb.co/N327Sqg

    you can choose which one to execute, use tsql or cmdexe
    and you can add detailed schedule at schedule tab

  12. #12
    Joke Time lightryuk12 is online now
    MemberRank
    Apr 2019 Join Date
    298Posts

    Re: Send cash for all player

    Complete Info please..still no idea... yes i know where to do that Agent.. but how to do it?? like puting code command ect,,..

    Quote Originally Posted by nughi View Post
    basicly like this

    https://ibb.co/N327Sqg

    you can choose which one to execute, use tsql or cmdexe
    and you can add detailed schedule at schedule tab

  13. #13
    Member nughi is offline
    MemberRank
    Jan 2014 Join Date
    UndetectedLocation
    52Posts

  14. #14
    Hunters dhenmas210 is offline
    MemberRank
    Jul 2019 Join Date
    IndonesiaLocation
    329Posts

    Re: Send cash for all player

    Solved

  15. #15
    Member Gretek is offline
    MemberRank
    Jun 2020 Join Date
    57Posts

    Re: Send cash for all player

    Quote Originally Posted by dhenmas210 View Post
    Solved
    How to read cash amount from database ?
    So cash amount not static 9999999

  16. #16
    Hunters dhenmas210 is offline
    MemberRank
    Jul 2019 Join Date
    IndonesiaLocation
    329Posts

    Re: Send cash for all player

    Php script

  17. #17
    Member Gretek is offline
    MemberRank
    Jun 2020 Join Date
    57Posts

    Re: Send cash for all player

    Quote Originally Posted by dhenmas210 View Post
    Php script
    Yes i know it's on cash folder (balance & payment.php), but i think there is more line of code to connect to database.
    i have changed MakeResponse("S000",$id,99999999); to MakeResponse("S000",$id,$balance); but changed to 0.
    Already changed cash field on Account table (dnmembership), but still 0,,,

    Any clue sir,, ?

  18. #18
    Hunters dhenmas210 is offline
    MemberRank
    Jul 2019 Join Date
    IndonesiaLocation
    329Posts

    Re: Send cash for all player

    Dnmembership, Functions, add cash

  19. #19
    Member Gretek is offline
    MemberRank
    Jun 2020 Join Date
    57Posts

    Re: Send cash for all player

    Quote Originally Posted by dhenmas210 View Post
    Dnmembership, Functions, add cash
    Did you have php file for reading cash amount from database ?
    It's no use if i change/add cash on database, but the game can't read value from database,,,

  20. #20
    Hunters dhenmas210 is offline
    MemberRank
    Jul 2019 Join Date
    IndonesiaLocation
    329Posts

    Re: Send cash for all player

    I don't know, I don't have that's.
    In my database all players have "0" cash. But ingame they have a lot cash.

  21. #21
    Member Gretek is offline
    MemberRank
    Jun 2020 Join Date
    57Posts

    Re: Send cash for all player

    Quote Originally Posted by dhenmas210 View Post
    I don't know, I don't have that's.
    In my database all players have "0" cash. But ingame they have a lot cash.
    No, i mean php files on WWW/cash folder and WWW/member/2 folder too,,,
    For database, i think im using the same databse as you,,,



Advertisement