how to make a command which...
#5

Quote:
Originally Posted by Miguel
Посмотреть сообщение
-- How long has it been up for -- https://sampwiki.blast.hk/wiki/Gettime
-- Since when -- https://sampwiki.blast.hk/wiki/Getdate

You could store the references returned by those functions when the server starts and calculate what you need, comparing the current date-time to the initial values. You might want to look at some database systems to save those references, I wouldn't go for something so complex, a few lines in a file should do.
I have tried to do it many times and when i use the !uptime command it says

Server has been up for 1388150620 Since 00/00/0/00:00
Reply


Messages In This Thread
how to make a command which... - by SRB - 27.12.2013, 00:07
Re: how to make a command which... - by Miguel - 27.12.2013, 06:41
Re: how to make a command which... - by newbie scripter - 27.12.2013, 07:13
Re: how to make a command which... - by SRB - 27.12.2013, 12:22
Re: how to make a command which... - by SRB - 27.12.2013, 13:19
Re: how to make a command which... - by Miguel - 27.12.2013, 16:34
Re: how to make a command which... - by SRB - 27.12.2013, 17:22
Re: how to make a command which... - by Miguel - 27.12.2013, 17:56
Re: how to make a command which... - by SRB - 27.12.2013, 19:31
Re: how to make a command which... - by SRB - 28.12.2013, 15:00

Forum Jump:


Users browsing this thread: 2 Guest(s)