[Help] Record Online Script

Results 1 to 9 of 9
  1. #1
    Account Upgraded | Title Enabled! BlackEye is offline
    MemberRank
    Sep 2007 Join Date
    Latvia-DobeleLocation
    733Posts

    [Help] Record Online Script

    Hi all! Can someone release here RECORD ONLINE SCRIPT for WEB!?


  2. #2
    I like pye vaiben is offline
    MemberRank
    Sep 2007 Join Date
    At Home ;DLocation
    400Posts

    Re: [HELP] Record Online Script

    yep,wud be nice

  3. #3
    Mad Scripter DarkFuture is online now
    MemberRank
    Oct 2005 Join Date
    LatviaLocation
    396Posts

    Re: [HELP] Record Online Script

    Use SQL soted procedures, use WZ_ConnectMember or smth for must online counting, allways when someone is joining server, procedure check how many people is online and then if it`s higher as last record, update it

  4. #4
    Account Upgraded | Title Enabled! BlackEye is offline
    MemberRank
    Sep 2007 Join Date
    Latvia-DobeleLocation
    733Posts

    Re: [HELP] Record Online Script

    I know,but can someone release script or php?

  5. #5
    Mad Scripter DarkFuture is online now
    MemberRank
    Oct 2005 Join Date
    LatviaLocation
    396Posts

    Re: [HELP] Record Online Script

    You can`t create SQL script?
    That`s not hard or You don`t known SQL language?

    EDIT:
    PHP Code:
    CREATE PROCEDURE WZ_CONNECT_MEMB
    @memb___id varchar(10),
    @
    ServerName  varchar(50),
    @
    IP varchar(20)    
     AS
    Begin    
    set nocount on
        
    Declare  @find_id varchar(10)    
        Declare  @
    ConnectStat tinyint
        Set 
    @find_id 'NOT'
        
    Set @ConnectStat 1

        select 
    @find_id S.memb___id from MEMB_STAT S INNER JOIN MEMB_INFO I ON S.memb___id I.memb___id 
               where I
    .memb___id = @memb___id

        
    if( @find_id 'NOT' )
        
    begin        
            insert into MEMB_STAT 
    (memb___id,ConnectStat,ServerName,IP,ConnectTM)
            
    values(@memb___id,  @ConnectStat, @ServerName, @IPgetdate())
        
    end
        
    else        
            
    update MEMB_STAT set ConnectStat = @ConnectStat,
                         
    ServerName = @ServerName,IP = @IP,
                         
    ConnectTM getdate()
                
    where memb___id = @memb___id
        end
    --Record script start
    Declare @online_record int
    Declare @max_online_record int
    Select count
    (*) From MEMB_STAT as @online_record Where ConnectStat '1'
    Select MaxOnlineRecord From RecordTable as @max_online_record
    if (@max_online_record < @online_record)
    begin
    Update RecordTable
    Set MaxOnlineRecord 
    = @online_record
    end
    --Record script end
    GO 
    5min work
    now only check syntax and create table for Record data :P
    Credits: me

  6. #6
    Account Upgraded | Title Enabled! BlackEye is offline
    MemberRank
    Sep 2007 Join Date
    Latvia-DobeleLocation
    733Posts

    Re: [HELP] Record Online Script

    Thanks! :D
    P.S:
    Vienkarsi slinkums nemties :)

  7. #7
    Mad Scripter DarkFuture is online now
    MemberRank
    Oct 2005 Join Date
    LatviaLocation
    396Posts

    Re: [HELP] Record Online Script

    As You say :P

  8. #8
    Account Upgraded | Title Enabled! BlackEye is offline
    MemberRank
    Sep 2007 Join Date
    Latvia-DobeleLocation
    733Posts

    Re: [HELP] Record Online Script

    Heh! Don't work! Can't create procedure! :D

  9. #9
    Mad Scripter DarkFuture is online now
    MemberRank
    Oct 2005 Join Date
    LatviaLocation
    396Posts

    Re: [HELP] Record Online Script

    Quote Originally Posted by DarkFuture View Post
    ...
    now only check syntax and create table for Record data :P
    ....
    That`s not 100% worked (melnraksts)
    Later I create and check script



Advertisement