Sendy Posted July 5, 2014 Posted July 5, 2014 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 Help me
MightyAnimals Posted July 5, 2014 Posted July 5, 2014 Have you even scripted the automatic date & time ?
Et-win Posted July 5, 2014 Posted July 5, 2014 Have you even scripted the automatic date & time ? I believe this is out of the Admin Panel if I am right.
Sendy Posted July 5, 2014 Author Posted July 5, 2014 No. .. but it is in any admin panel that I download .. and in any what I download it does not work. And that Screene can be seen that this player lil_Toady works. Wiki is the screen.
Sendy Posted July 5, 2014 Author Posted July 5, 2014 To get my work in Ban Details Date and Time of any admin panel it does not .. and if it went well, please post what you modified in admin panel etc. ..
Addlibs Posted July 5, 2014 Posted July 5, 2014 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
MightyAnimals Posted July 6, 2014 Posted July 6, 2014 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.
Sendy Posted July 6, 2014 Author Posted July 6, 2014 But so it is useless to me .. I need it in admin_ban or Ban Details
MightyAnimals Posted July 6, 2014 Posted July 6, 2014 But so it is useless to me .. I need it in admin_ban or Ban Details If it was useless, MrTasty wouldn't even post the lua codes
Sendy Posted July 6, 2014 Author Posted July 6, 2014 But so it is useless to me .. I need it in admin_ban or Ban Details If it was useless, MrTasty wouldn't even post the lua codes So write at least where should I put it?
MIKI785 Posted July 7, 2014 Posted July 7, 2014 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"
MightyAnimals Posted July 7, 2014 Posted July 7, 2014 Don't understand him wrong though, We're all here to help eachother out. But, eventually you have to do it yourself.
Sendy Posted July 7, 2014 Author Posted July 7, 2014 I do not know what is wrong .. what do I have to send someone to fix it to make it go .. or send me at least one normal admin panel where it comes in Ban Details Date, Time
Sendy Posted July 9, 2014 Author Posted July 9, 2014 Each Admin Panel I've not been tested .. and everyone was lil_Toady
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now