|
heres a creat procedure to make for your database to give out points buy simply eecuteing the quary after you creat it all you input is the userid (accountname) and points to give...
USE [PS_GMTool]
GO
/****** Object: StoredProcedure [dbo].[IPBan] Script Date: 06/06/2011 00:39:47 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
/*================================================= =
@author [DEV]xXDASHXx
================================================== */
create Proc [dbo].[DonationPointHandout]
@UserID VARCHAR(100),
@Point INT
AS
UPDATE PS_UserData.dbo.Users_Master SET Point=ISNULL(Point,0)+@Point
WHERE UserID=@UserID
SET NOCOUNT OFF
|