1LoL1 Posted March 24, 2014 Share Posted March 24, 2014 Hello, I came to ask me why this does not work? However, should there writing a series, nickname, date, time, reason and Banned by .. and why there shows Unkown please help me? Link to comment
WhoAmI Posted March 24, 2014 Share Posted March 24, 2014 In admin panel or in your own script? Link to comment
1LoL1 Posted March 24, 2014 Author Share Posted March 24, 2014 In admin panel or in your own script? In the admin panel .. Link to comment
1LoL1 Posted March 28, 2014 Author Share Posted March 28, 2014 Please? sorry for tripple post.. Link to comment
Castillo Posted March 28, 2014 Share Posted March 28, 2014 It could be a bug in the script, open the debugscript ( /debugscript 3 ) and see if anything comes up when you click the details button. Link to comment
1LoL1 Posted March 28, 2014 Author Share Posted March 28, 2014 It could be a bug in the script, open the debugscript ( /debugscript 3 ) and see if anything comes up when you click the details button. Does not write anything and it does not work all the time .. Link to comment
1LoL1 Posted March 29, 2014 Author Share Posted March 29, 2014 Solidsnake14 please help me? and this makes me in any admin panel .. Link to comment
1LoL1 Posted April 1, 2014 Author Share Posted April 1, 2014 SolidSnake14 I just found this here but I do not know what to put there instead Unknown? if ( nick ) then nick = xmlNodeGetValue ( nick ) else nick = "Unknown" end if ( banner ) then banner = xmlNodeGetValue ( banner ) else banner = "Unknown" end if ( reason ) then reason = xmlNodeGetValue ( reason ) else reason = "Unknown" end if ( date ) then date = xmlNodeGetValue ( date ) else date = "Unknown" end if ( time ) then time = xmlNodeGetValue ( time ) else time = "Unknown" end Sorry for the triple post but it did not have to delete the previous post Link to comment
Castillo Posted April 1, 2014 Share Posted April 1, 2014 It returns "unknown" if the value is nil. Link to comment
1LoL1 Posted April 2, 2014 Author Share Posted April 2, 2014 It returns "unknown" if the value is nil. So what am I supposed to put this to work? Link to comment
MIKI785 Posted April 2, 2014 Share Posted April 2, 2014 Nothing, its nil. Youre trying to get info thats simply not there. Link to comment
1LoL1 Posted April 2, 2014 Author Share Posted April 2, 2014 Nothing, its nil. Youre trying to get info thats simply not there. So then what makes someone Admin Panel is not working .. and this can not be done Niako make it go? Link to comment
1LoL1 Posted April 20, 2014 Author Share Posted April 20, 2014 So at least there poradte what should I supplement? Terribly need it .. if ( aBans["IP"][ip] ) then guiSetText ( aBanIP, "IP: "..ip ) guiSetText ( aBanNick, "Nickname: "..iif ( aBans["IP"][ip]["nick"], aBans["IP"][ip]["nick"], "Unknown" ) ) guiSetText ( aBanDate, "Date: "..iif ( aBans["IP"][ip]["date"], aBans["IP"][ip]["date"], "Unknown" ) ) guiSetText ( aBanTime, "Time: "..iif ( aBans["IP"][ip]["time"], aBans["IP"][ip]["time"], "Unknown" ) ) guiSetText ( aBanBanner, "Banned by: "..iif ( aBans["IP"][ip]["banner"], aBans["IP"][ip]["banner"], "Unknown" ) ) if ( aBanReason ) then destroyElement ( aBanReason ) end aBanReason = guiCreateLabel ( 0.03, 0.60, 0.80, 0.30, "Reason: "..iif ( aBans["IP"][ip]["reason"], aBans["IP"][ip]["reason"], "Unknown" ), true, aBanForm ) guiLabelSetHorizontalAlign ( aBanReason, "left", true ) guiSetVisible ( aBanForm, true ) guiBringToFront ( aBanForm ) elseif ( aBans["Serial"][ip] ) then guiSetText ( aBanIP, "Serial: "..ip ) guiSetText ( aBanNick, "Nickname: "..iif ( aBans["Serial"][ip]["nick"], aBans["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 ) 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