Sendy Posted July 5, 2014 Share 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 Link to comment
MightyAnimals Posted July 5, 2014 Share Posted July 5, 2014 Have you even scripted the automatic date & time ? Link to comment
Et-win Posted July 5, 2014 Share 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. Link to comment
Sendy Posted July 5, 2014 Author Share 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. Link to comment
Max+ Posted July 5, 2014 Share Posted July 5, 2014 what you want ? please be more clear , Link to comment
Sendy Posted July 5, 2014 Author Share 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. .. Link to comment
Addlibs Posted July 5, 2014 Share 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 Link to comment
Sendy Posted July 6, 2014 Author Share Posted July 6, 2014 And I have nowhere to put it? Link to comment
MightyAnimals Posted July 6, 2014 Share 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. Link to comment
Sendy Posted July 6, 2014 Author Share Posted July 6, 2014 But so it is useless to me .. I need it in admin_ban or Ban Details Link to comment
MightyAnimals Posted July 6, 2014 Share 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 Link to comment
Sendy Posted July 6, 2014 Author Share 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? Link to comment
MIKI785 Posted July 7, 2014 Share 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" Link to comment
MightyAnimals Posted July 7, 2014 Share 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. Link to comment
Sendy Posted July 7, 2014 Author Share 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 Link to comment
MightyAnimals Posted July 9, 2014 Share Posted July 9, 2014 You could try and use Lil' Toady's panel Link to comment
Sendy Posted July 9, 2014 Author Share Posted July 9, 2014 Each Admin Panel I've not been tested .. and everyone was lil_Toady Link to comment
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