[question]SMC 2 small issues SS included

Results 1 to 7 of 7
  1. #1
    Elite Member antoha is offline
    Member +Rank
    Oct 2007 Join Date
    Ukrain, KievLocation
    153Posts

    [question]SMC 2 small issues SS included

    first one is when i click Query in SR-UserPunishment i get this msg and nothing happens
    http://i45.tinypic.com/2w56h5i.png

    second is i don't have any in game logs using the perfection server pack
    http://i47.tinypic.com/2e0rcs9.png

    how can i enable logs and what causing the punishment fail ?

    thx.


  2. #2
    Elite Member elitebi is offline
    Member +Rank
    Feb 2012 Join Date
    196Posts

    Re: [question]SMC 2 small issues SS included

    first in SR-UserPunishment you must put the userID not the charname
    second change your log_db with another that can record logs but it will make your server lags, that's why perfection was disabling it in this pack.

  3. #3
    Elite Member antoha is offline
    Member +Rank
    Oct 2007 Join Date
    Ukrain, KievLocation
    153Posts

    Re: [question]SMC 2 small issues SS included

    i did by charr name before and it worked fine also tryed with charr ID took from DB and still failed for logs i have good dedicated server which can hold logs anyway i will delete them every few days

  4. #4
    Elite Member BryanSA is offline
    Member +Rank
    Jan 2012 Join Date
    EnglandLocation
    215Posts

    Re: [question]SMC 2 small issues SS included

    bro, ur no have procedure punishment in db :(... look first imagem, failed query punishment

    PHP Code:
    USE [SRO_VT_ACCOUNT]
    GO
    /****** Procedure By Jangan @RageZone ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- 
    -----------------------------------------------------------------------------------
    -----------------------------------------------------------------------------------
    CREATE procedure [dbo].[_RegisterPunishment]
        @
    UserJID     int,
        @
    Type          tinyint,
        @
    Executor    varchar(128),
        @
    Shard        smallint,
        @
    CharName    varchar(16),
        @
    CharInfo    varchar(256),
        @
    PosInfo    varchar(64),
        @
    Guide        varchar(512),
        @
    Description    varchar(1024),
        @
    RaiseTime    datetime,
        @
    BlockStartTime    datetime,
        @
    BlockEndTime    datetime,
        @
    PunishTime    datetime
    as
        -- 
    AuthorJangan RageZone
        
    if( existsselect UserJID from _BlockedUser with(NOLOCKwhere UserJID = @UserJID and Type = @Type))
        
    begin
            select 
    -1    
            
    RETURN
        
    end
        
    declare @NewSerialNo int    
        set 
    @NewSerialNo 0
        
        insert _Punishment values
    ( @UserJID, @Type, @Executor, @Shard, @CharName, @CharInfo,
                    @
    PosInfo, @Guide, @Description, @RaiseTime, @BlockStartTime, @BlockEndTime, @PunishTime0)
        
    set @NewSerialNo = @@identity
        
    if( @@rowcount or @@error <> or @NewSerialNo or @NewSerialNo is null)
        
    begin
            select 
    -2    
            
    return
        
    end
        
    declare @UserID varchar(128)
        
    set @UserID = (SELECT StrUserID FROM TB_User where JID = @UserJID)
        if( @@
    rowcount or @@error <> or @UserID is null)
        
    begin
            select 
    2
            
    return
        
    end
        insert _BlockedUser values
    ( @UserJID, @UserID, @Type, @NewSerialNo, @BlockStartTime, @BlockEndTime)
        
    select 0 
    Execut this and done problem.

    Credits procedure, Jangan :)

  5. #5
    Elite Member antoha is offline
    Member +Rank
    Oct 2007 Join Date
    Ukrain, KievLocation
    153Posts

    Re: [question]SMC 2 small issues SS included

    Msg 2714, Level 16, State 3, Procedure _RegisterPunishment, Line 44
    There is already an object named '_RegisterPunishment' in the database. yes problem is i have it but i still don't know what may cause this. this thing happened after some 1 hacked db and deleted some of the accounts i restored the databases secured the server but this issue still persists any ideas how to fix it?

  6. #6
    Elite Member BryanSA is offline
    Member +Rank
    Jan 2012 Join Date
    EnglandLocation
    215Posts

    Re: [question]SMC 2 small issues SS included

    Quote Originally Posted by antoha View Post
    Msg 2714, Level 16, State 3, Procedure _RegisterPunishment, Line 44
    There is already an object named '_RegisterPunishment' in the database. yes problem is i have it but i still don't know what may cause this. this thing happened after some 1 hacked db and deleted some of the accounts i restored the databases secured the server but this issue still persists any ideas how to fix it?
    need block ports and security ur website.

  7. #7
    Elite Member antoha is offline
    Member +Rank
    Oct 2007 Join Date
    Ukrain, KievLocation
    153Posts

    Re: [question]SMC 2 small issues SS included

    i blocked ports and secured my website how do i fix the punishment error? so i be able to ban via SMC and not DB thats the question



Advertisement