PtokaX forum

Development Section => Your Developing Problems => Topic started by: Themaster on 20 December, 2004, 15:45:34

Title: birthdayv3.5
Post by: Themaster on 20 December, 2004, 15:45:34
Hello...i just got that script...and i try to get on my script...but there are 2 time function on it and it want have it...plz have can i chance it so i can't get it on....

I just want to say it is a nice script
Title:
Post by: Herodes on 20 December, 2004, 17:42:24
QuoteOriginally posted by Themaster
Hello...i just got that script...and i try to get on my script...but there are 2 time function on it and it want have it...plz have can i chance it so i can't get it on....

I just want to say it is a nice script
thanks but I dont seem to understand what the problem is ... could you explain what you mean by "two time function on it" ?
Title:
Post by: Themaster on 20 December, 2004, 17:51:53
is i can
My time function
sec = 1000
min = 60 * sec
hour = 60 * min
day = 24 * hour

your
sec = 1000
minutes = 1000*60
hours = 1000*(60^2)

function Main()
LoadFile(birthlog)
if loadcelebs ~= 0 then
LoadFile(celbirhtfile)
else
tCelebs = nil
end
tCalendar[2][1] = FixFebruary(tonumber(date("%Y")))

local hr = tonumber(date("%H"))*60*60*1000
local mins = 0
if tonumber(date("%M")) == 0 then
mins = 1
else
mins = tonumber(date("%M"))*60*1000
end
fixTime(hr+mins)
frmHub:UnregBot(bBot)
frmHub:RegBot(bBot)
end
Title:
Post by: Themaster on 22 December, 2004, 15:23:02
help me plz...need it
Title:
Post by: Themaster on 23 December, 2004, 00:19:53
Hello peps...i do realy need some help here i do try to make args to data that it work on my script with data....any one wan't to look on this fine script at chance from args to data ????


Birthdays bot (http://www.plop.nl/ptokaxbots/Herodes.php)

merry x-mas to you all and happy new year to
Title:
Post by: enema on 23 December, 2004, 06:57:02
open a notepad, copy script in there, use "replace" function to replace words "min" with "minutes", "hour" with "hours"! Leave the "day" as it will be, when hour is replaced with hours... (day =24*hours) I dont really see the problem... If there is somekind of hook, why its immpossible, copy your script here