I try to witre auto ban for players who play in both fraction
First i cerate table 'bot" to wirte logs
Code:
USE [PS_GameLog]
GO
/****** Object: Table [dbo].[Bot] Script Date: 2014-09-27 16:13:16 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Bot](
[row] [int] IDENTITY(1,1) NOT NULL,
[UserUID] [int] NULL,
[UserID] [int] NULL,
[UserIP] [tinyint] NULL,
[Country] [int] NULL,
[Actiontime] [datetime] NULL
) ON [PRIMARY]
GO
And next i try to add Insert logs to new table in usp_Insert_Action_Log_E
Like that:
Code:
IF (@ActionType = '107')
BEGIN
IF EXISTS (SELECT * FROM PS_GameLog.dbo.Bot)
BEGIN
DECLARE @UserIP varchar(15)
DECLARE @Country tinyint
SET @UserUID= (Select UserIP from PS_UserData.dbo.Users_Master where UserUID=@UserUID)
SET @UserID= (Select UserID from PS_UserData.dbo.Users_Master where UserUID=@UserUID)
SET @UserIP= (Select UserIP from PS_UserData.dbo.Users_Master where UserUID=@UserUID)
SET @Country = (SELECT Country FROM PS_GameData.dbo.UserMaxGrow WHERE UserUID=@UserUID)
SET @ActionTime =GETDATE()
IF (@ActionType ='107')
BEGIN
INSERT INTO PS_GameLog.dbo.Bot(UserUID,UserID,UserIP,Country,ActionTime) values (@UserUID,@UserID,@UserIP,@Country,@ActionTime)
END
END
END
But i have a problem with insert log on this table:
Code:
IF (@ActionType = '107')
BEGIN
IF EXISTS (SELECT * FROM PS_GameLog.dbo.Bot)
BEGIN
DECLARE @UserIP varchar(15)
DECLARE @Country tinyint
SET @UserUID= (Select UserIP from PS_UserData.dbo.Users_Master where UserUID=@UserUID)
SET @UserID= (Select UserID from PS_UserData.dbo.Users_Master where UserUID=@UserUID)
SET @UserIP= (Select UserIP from PS_UserData.dbo.Users_Master where UserUID=@UserUID)
SET @Country = (SELECT Country FROM PS_GameData.dbo.UserMaxGrow WHERE UserUID=@UserUID)
SET @ActionTime =GETDATE()
IF (@ActionType ='107')
BEGIN
INSERT INTO PS_GameLog.dbo.Bot(UserUID,UserID,UserIP,Country,ActionTime) values (@UserUID,@UserID,@UserIP,@Country,@ActionTime)
END
END
END
I try that to insert logs but is not insertef
Sorry fom my english
insert into PS_GameLog.dbo.Bot
SELECT @UserUID AS UserUID, @UserID AS UserID, @UserIP AS UserIP, @Country AS Country, GETDATE() AS ActionTime
FROM PS_GameLog.dbo.Bot
Where UserUID=@userUID
Yes, I understand this is not trolling, this is serious business
No is not
But need auto ban for ppl who play in both faction. on our server is too many ppl who play in faction who bosses have and unbalanced pvp because of that
With dbo.bot we can put in game_Log_out
Code:
Update ps_UserData.dbo.Users_Master
Set Status ='-5'
Where UserUID+@UserUID and @Country 0 and 1
But because logs dont want inserted in dbo.bot i ask for help here
table.insert problem LUA Code pls help 01/13/2014 - General Coding - 3 Replies Hi guys,
I've some problems with this code:
local names_list_s = mysql_query("SELECT * FROM player.vote_member WHERE empire = 'SHINSOO'; ")
local names_list_table = {}
for i = 1,table.getn(names_list_s),1 do
table.insert(names_list_table,names_list_s .name)
end
How to insert ??? 04/16/2011 - Metin2 Private Server - 1 Replies How to insert diacritics in my client ??? ş ţ ă î ??? FAST PLS:(
Insert / Enfg 04/26/2010 - Combat Arms - 6 Replies Hallo liebe E*PVP's,
ich habe eine Tastatur, der bedauerlicherweise die Insert / Enfg Taste fehlt. Da diese immer mal wieder benötigt wird, ich aber aufgrund von anderen besonderen Funktionen der Tastatur keine neue kaufen möchte, wollte ich fragen, wie ich diese Taste in CA Simulieren kann. Die Bildschirmtastatur von Windows geht nicht, die bleibt nicht im Vordergrund. Geht das irgendwie mit einem Prog, dass ich eine bestimmte Tasten-combi drücken muss, das der dem Computer die Insert / Enfg...
Insert tool 03/21/2008 - Conquer Online 2 - 1 Replies how comes insert tool doesnt work with the new patches or if it does cud sumone tell me how?