Hi guys , please explain how to send cash to all member..
Thank you..
Hi guys , please explain how to send cash to all member..
Thank you..
just insert into table cash
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
Thank you for sharing..
Simple one
if you wanna make it scheduled just use agentuse dnmembership
INSERT CashIncome ( [AccountID], [CashIncomeCode], [PGCode], [PGKey], [CashAmount], [IncomeDate])
select AccountID ,'2' ,NULL ,NULL ,'your amount here' ,GETDATE() from Accounts
note = you can modified with only online user which can received
Last edited by nughi; 25-03-20 at 09:54 PM.
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
Solved
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,, ?
Dnmembership, Functions, add cash
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.
![]()