Jump to content

Help Ban Details


Sendy

Recommended Posts

What should I do to me I went to Ban Details Date, Time? Here is a post screen and where it goes.

elseif ( aBans["Serial"][ip] ) then 
        guiSetText ( aBanIP, "Serial: "..ip ) 
        guiSetText ( aBanNick, "Nickname: "..iif ( aBans["Serial"][ip]["nick"], a Bans["Serial"][ip]["nick"], "Unknown" ) ) 
        guiSetText ( aBanDate, "Date: "..iif ( aBans["Serial"][ip]["date"], aBans["Serial"][ip]["date"], "Unknown" ) ) 
        guiSetText ( aBanTime, "Time: "..iif ( aBans["Serial"][ip]["time"], aBans["Serial"][ip]["time"], "Unknown" ) ) 
        guiSetText ( aBanBanner, "Banned by: "..iif ( aBans["Serial"][ip]["banner"], aBans["Serial"][ip]["banner"], "Unknown" ) ) 
        if ( aBanReason ) then destroyElement ( aBanReason ) end 
        aBanReason = guiCreateLabel ( 0.03, 0.60, 0.80, 0.30, "Reason: "..iif ( aBans["Serial"][ip]["reason"], aBans["Serial"][ip]["reason"], "Unknown" ), true, aBanForm ) 
        guiLabelSetHorizontalAlign ( aBanReason, "left", true ) 
        guiSetVisible ( aBanForm, true ) 
        guiBringToFront ( aBanForm ) 
    end 
end 

Ban%20Details.png

Help me :oops:

Link to comment
  
bantime = getRealTime(getBanTime(theBan)) 
local day = bantime.day 
local month = bantime.month+1 
local year = bantime.year+1900 
local hour = bantime.hour 
local minute = bantime.minute 
local second = bantime.second 
dateformatted = string.format(%.2d/%.2d/%.4d %.2d:%.2d:%.2d, day, month, year, hour, minute, second) 
  

Gives a formatted date like this:

01/01/0001 00:00:00

Link to comment
  
bantime = getRealTime(getBanTime(theBan)) 
local day = bantime.day 
local month = bantime.month+1 
local year = bantime.year+1900 
local hour = bantime.hour 
local minute = bantime.minute 
local second = bantime.second 
dateformatted = string.format(%.2d/%.2d/%.4d %.2d:%.2d:%.2d, day, month, year, hour, minute, second) 
  

Gives a formatted date like this:

01/01/0001 00:00:00

That's what I ment earlier when I asked if you scripted the date sequence Sendy.

Seems that you didn't do that.

Link to comment

Try learning some english first and of course more importantly some scripting as well, you have no idea at all about what you're doing here as i can see so far.

That thing has to go wherever the bans get sent to client. If you knew the basics of scripting you would know that.

"You're trying to run but can't even walk yet"

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...