Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Cash Query - Add Cash Online Player

Newbie Spellweaver
Joined
Feb 2, 2010
Messages
45
Reaction score
0
Can someone make this works? it seems i cant do it properly, it said my query successful and several line affected, but no changes whatsoever

USE [dnmembership]
GO

declare @cash int


set @cash = '1000'

insert into cashincome (AccountID,CashIncomeCode,CashAmount,Incomedate)
Select DNAuth.AccountDBID,'2',@cash,Getdate() from DNAuth
where DNAuth.CertifyingStep = 2;

GO
 
Experienced Elementalist
Joined
Oct 18, 2020
Messages
206
Reaction score
39
Can someone make this works? it seems i cant do it properly, it said my query successful and several line affected, but no changes whatsoever


Question, are you using 2126 or 2783?



wait let me fix it for you if you are using 2126



where is the values?



Code:
[CENTER]USE [DNMembership]

[/CENTER]
GO
 DECLARE    @[I][B][URL="https://forum.ragezone.com/members/315880.html"]cas[/URL][/B][/I]h int
SET    @[I][B][URL="https://forum.ragezone.com/members/315880.html"]cas[/URL][/B][/I]h = '1000'

INSERT INTO [dbo].[CashIncome]

(
     AccountID
    ,CashIncomeCode
    ,PGCode
    ,PGKey
    ,CashAmount
    ,IncomeDate
)

SELECT DNAuth.AccountDBID, 0, 0, 0,    @[I][B][URL="https://forum.ragezone.com/members/315880.html"]cas[/URL][/B][/I]h, GETDATE() FROM [dbo].[DNAUth] WHERE CertifyingStep = 2;



2783 Online Cash

Code:
[COLOR=#B9BBBE]USE [DNMembership]

 GO

UPDATE dbo.Accounts [/COLOR][COLOR=#859900]SET[/COLOR][COLOR=#B9BBBE] cash [/COLOR][COLOR=#B9BBBE]=[/COLOR][COLOR=#2AA198]10 /*[/COLOR]<--- (cash Value)*/ [COLOR=#B9BBBE]+[/COLOR][COLOR=#B9BBBE] cash [/COLOR][COLOR=#859900]FROM[/COLOR][COLOR=#B9BBBE] dbo.Accounts [/COLOR][COLOR=#859900]INNER[/COLOR][COLOR=#859900]JOIN[/COLOR][COLOR=#B9BBBE] dbo.DNAuth [/COLOR][COLOR=#859900]ON[/COLOR][COLOR=#B9BBBE] dbo.Accounts.AccountName [/COLOR][COLOR=#B9BBBE]=[/COLOR][COLOR=#B9BBBE] dbo.DNAuth.AccountName [/COLOR][COLOR=#859900]WHERE[/COLOR][COLOR=#B9BBBE] dbo.DNAuth.CertifyingStep [/COLOR][COLOR=#B9BBBE]=[/COLOR][COLOR=#2AA198]2[/COLOR]
 
Last edited:
Back
Top