• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[help]Global inventory any place for only premium

Joined
Apr 2, 2013
Messages
1,098
Reaction score
4,625
properly would be like

declare @IsPremium int;
select @IsPremium from UsersData where CustomerID=@in_CustomerID


if (@IsPremium = 1) begin
update UsersChars set GameFlags=1 where CharID=@in_CharID
end

and check for the existence of this column IsPremium in the table UsersData



or if is new source code try it

declare @PremiumExpireTime datetime;
select @PremiumExpireTime = PremiumExpireTime from UsersData where CustomerID = @in_CustomerID;


if(@PremiumExpireTime > GETDATE()) begin
update UsersChars set GameFlags = 1 where CustomerID = @in_CustomerID;
end
 
Last edited:
Upvote 0
Back
Top