READ THE RULES
0 Members and 1 Guest are viewing this topic.
Originally posted by Psycho_Chihuahua also uploaded to the Scriptdb and added a translated Gui in German :D
Originally posted by Hoke Kepp have you forget to update cript version number in cript ?however i download latest from your pages link "GuardingV0.3.9 B.rar" but cript info says "This hub is running Guarding V: 0.3.8 ( Developed by Kepp )"in any case i found something:!topchat = Syntax Guarding/Commands.tbl:1249: attempt to index field `?' (a number value)
Originally posted by Ubikk I've just updated my script to 0.3.8 version... it looks very nice, but there's only one problem I've noticed so far.. I just can't change the Op-chat bot's name.. if I try changing the name, saving the settings an reopen the GUI... the old name [OP-CHAT] appears instead... any idea on what can I do to save this setting?
Originally posted by kepp QuoteOriginally posted by Psycho_Chihuahua also uploaded to the Scriptdb and added a translated Gui in German Upload, Yes, Translation, never
Originally posted by Psycho_Chihuahua also uploaded to the Scriptdb and added a translated Gui in German
\"so you can be quick,jump the candlestick,burn your back,and fuck Jill on a hill,but you still ain\'t Jack.\"-EMINEM
Originally posted by EMIN3M I’m getting Connection Timeouts on the site, any one else have problems?Cheerz Em )
Originally posted by Psycho_Chihuahua QuoteOriginally posted by kepp QuoteOriginally posted by Psycho_Chihuahua also uploaded to the Scriptdb and added a translated Gui in German :DUpload, Yes, Translation, never :)I dont mind doin that :D :D
Originally posted by kepp QuoteOriginally posted by Psycho_Chihuahua also uploaded to the Scriptdb and added a translated Gui in German :DUpload, Yes, Translation, never :)
Originally posted by EMIN3MI’m getting Connection Timeouts on the site, any one else have problems?Cheerz Em :))
Originally posted by HoneyHi Kepp,I have two problems:1. This bug -> Syntax C:\PtokaX\scripts\Guarding.lua:1195: bad argument #1 to `open' (string expected, got nil)2. Guarding don't show MOTD to users even if I this function I have Enabled and don't show OPs joining to the hub even if I have Enabled this function and set: Send to all!What is wrong?Thank you in advanceP.S.I have: Guarding V 0.3.8
[17:38] Syntax Guarding/Commands.tbl:1249: attempt to index field `?' (a number value)Got this when I tried +topchat
*EDIT*1[17:46:38] Your total calculated uptime is in Months: 0, Days: 0, Hours: 0, Minutes: 0Not working ;)
*EDIT*2 +set - Set settings by raw, will display error on prokax error textbox if any error
*EDIT*3I think a block against kicking the master would be nice =)
*EDIT*4Voting on a person with a higher level aint a good idea...Can it be arranged??*More testing on this script with more request*I just love this one....I want to know aswell other peoples statistic on their hub with this script...I´m planning on having it on a 2000+ user hub...
*Edit*5[21:50:22] [telia}rokka has received 1 vote(s), 4 vote(s) left to gain a 600 minute(s) kick![21:50:29] [telia}rokka has received 2 vote(s), 3 vote(s) left to gain a 600 minute(s) kick![21:52:02] [telia}rokka has received 3 vote(s), 2 vote(s) left to gain a 600 minute(s) kick![21:55:02] [telia}rokka has received 4 vote(s), 1 vote(s) left to gain a 600 minute(s) kick!1 person shouldnt be able to vote more than 1 time at 1 person....
*EDIT*6[23:16] Syntax Guarding/Commands.tbl:441: attempt to index global `v' (a nil value)
Originally posted by Snoris Code: [Select][17:38] Syntax Guarding/Commands.tbl:1249: attempt to index field `?' (a number value)Got this when I tried +topchatin commands.lua find these lines and remove extra [1] like thisCode: [Select] -- FIX OUTPUT ["topchat"] = function(user,data) if (Denial("topchat",user) == 1) then return 1 end local Index = tablesorting(HubStat[6]); local sMsg = ""; if (Index.n < 1) then sMsg = sMsg.."\r\n There is no statistic of any topchatters yet..."; else for i=1,Index.n do sMsg = sMsg.."\r\n "..i..". "..Index[i].." => "..HubStat[COLOR=red][1][/COLOR] [6][Index[i]]; if (Settings.Commands.Topchat.Amount <= i) then break end end end local Structure = ""; Structure = Structure.."\r\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ( TOP CHAT ) -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\r\n"; Structure = Structure..sMsg; Structure = Structure.."\r\n\r\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ( END ) -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-" user:SendPM(sBot,Structure); return 1; end, !myhubtime works here ok: Your total calculated uptime is in Months: 0, Days: 10, Hours: 15, Minutes: 45
-- FIX OUTPUT ["topchat"] = function(user,data) if (Denial("topchat",user) == 1) then return 1 end local Index = tablesorting(HubStat[6]); local sMsg = ""; if (Index.n < 1) then sMsg = sMsg.."\r\n There is no statistic of any topchatters yet..."; else for i=1,Index.n do sMsg = sMsg.."\r\n "..i..". "..Index[i].." => "..HubStat[COLOR=red][1][/COLOR] [6][Index[i]]; if (Settings.Commands.Topchat.Amount <= i) then break end end end local Structure = ""; Structure = Structure.."\r\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ( TOP CHAT ) -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\r\n"; Structure = Structure..sMsg; Structure = Structure.."\r\n\r\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ( END ) -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-" user:SendPM(sBot,Structure); return 1; end,
function Guarding:GetSystemUptime() os.execute("uptime > uptime.txt"); local hFile = io.open("uptime.txt","r"); local str = ""; if (hFile) then local line = hFile:read(); while line do str = str..line; line = hFile:read(); end hFile:close(); os.remove("uptime.txt"); local _,_,str = string.find(str, "for: (.*)"); return str or "Unknown"; endend
Originally posted by Snoris Thx for ur help..I still dont get the right uptime for my self..And I have another problem... ===================================================================================================== ¤ Hub statistics for Haninge Für Alle ------------------------------------------------------------------------------------------------------------- ¤ Server is running on: Microsoft Windows XP [Version 5.1.2600] ¤ Uptime of server: Unknown ¤ Hub-software: PtokaX 0.3.3.21 ¤ Script running: Guarding 0.3.8 ( Written by Kepp ) --------------------------------------------------------------------------------------------------------------Code: [Select]function Guarding:GetSystemUptime() os.execute("uptime > uptime.txt"); local hFile = io.open("uptime.txt","r"); local str = ""; if (hFile) then local line = hFile:read(); while line do str = str..line; line = hFile:read(); end hFile:close(); os.remove("uptime.txt"); local _,_,str = string.find(str, "for: (.*)"); return str or "Unknown"; endendI know this code generates the system uptime..But where should I put "uptime.txt"??Or should it be generated by itself??Thx
Originally posted by Snoris The offline user database...I have never seen anything in that section...Something I have done wrong/forgot??