Re: CTime Library -
xRotem - 22.08.2013
great
Re: CTime Library -
TheArcher - 25.08.2013
Same as the above user reported. Also, if you "CTRL+C" the console it crashes.
Re: CTime Library -
Admigo - 28.09.2013
I have a problem with the plugin.
Код:
Loading plugin : CTime
Failed
What i am doing wrong?
I am using windows.
Re: CTime Library -
Mark™ - 28.09.2013
Quote:
Originally Posted by Admigo
I have a problem with the plugin.
Код:
Loading plugin : CTime
Failed
What i am doing wrong?
I am using windows.
|
Freshly compiled on Windows. This one runs successfully -
http://www.solidfiles.com/d/c57af24e0f/
Re: CTime Library -
Admigo - 29.09.2013
Quote:
Originally Posted by Mark™
|
Thanks

EDIT: Fixed
Re: CTime Library -
xPlay - 01.10.2013
nice job!
Re: CTime Library -
Ballu Miaa - 24.01.2014
I was thinking RyDeR, that this plugin gives a new function 'Wait (seconds)'. So it freezes the whole server's execution for 5 seconds? Can not you make a new function which freezes the execution only for a playerid? Like
pawn Код:
WaitEx(playerid,seconds);
I wish that can happen. Well great work man. The plugin is full of awesome functions!
Re: CTime Library -
Ballu Miaa - 24.01.2014
Quote:
Originally Posted by [HLF]Southclaw
That's not really relevant to this plugin. It's for formatting timestamp data into human-readable strings.
However, you can do what you described by returning 0 on OnPlayerConnect, it will stop their client interaction with the server as long as OPU is returning 0 (the equivalent of being paused really)
I've only found one use for the Wait function, and that is a small delay between connecting or spawning multiple NPCs with one of the plugins.
|
Well thanks Claw! I understand that mate. It doesn't have anything to do with it. For me WaitEx could be really useful as i dont need to use second timers and i can let a playerid wait for couple of seconds before executing a code.
A function is more better as compared to the method you described.
Re: CTime Library -
Ballu Miaa - 25.01.2014
Quote:
Originally Posted by [HLF]Southclaw
You can't make a specific player wait to execute code as you can't run code for specific players, everything runs on one thread one thing after another. If that thread is paused (with a wait() function for example) the entire server will stop.
Check out this thread for more info: https://sampforum.blast.hk/showthread.php?tid=257660
If you want an easier way to write timer code, check out y_timers. That library decreases the amount of writing you need to do for deferred or repeated functions.
|
Dayum! Thanks for all the information Claw. I learned a lot. I guess i will end up using y_timers for all that purpose. Well thanks bro!
Re: CTime Library -
AndreT - 20.02.2014
Without looking at the CTime plugin source, I jump to the assumption that the plugin does not interfere with which modifiers you use. Better open up the file f:\dd\vctools\crt_bld\self_x86\crt\strftime.c and see which version it is. As the page you linked to says, support for modifiers in yellow was added in C99. Compile with that
Re: CTime Library -
Marricio - 28.07.2014
I get this:
Код:
[21:36:49] Server Plugins
[21:36:49] --------------
[21:36:49] Loading plugin: CTime
[21:36:49] Failed.
I would try to re-compile the plugin, but I don't know how to do that!
Already tried with the files provided above, but no luck. Any help?
Re: CTime Library -
Mark_Weston - 18.10.2014
when I use this plugin :/
and ./makefile does not work just bunch of errors.
Dev Tools is installed.
[root@host IGSS]# cat /etc/*release*
CentOS release 6.5 (Final)
CentOS release 6.5 (Final)
CentOS release 6.5 (Final)
Re: CTime Library - justice96 - 20.12.2014
downloaded and error detected. the program can't start because msvcr100d.dll is missing from your computer.
any ideas?
Re: CTime Library -
FinStar - 09.03.2015
how to change the day in another language? (month, day, ..)?
Thu = Stř
Thuesday = Středa
Jan = Led
January = Leden
...
.....
* For example, in Czech ?
Re: CTime Library -
EmpireSk - 09.03.2015
Quote:
Originally Posted by FinStar
how to change the day in another language? (month, day, ..)?
Thu = Stř
Thuesday = Středa
Jan = Led
January = Leden
...
.....
* For example, in Czech ?
|
Vљak si jebnutэ -_-
Re: CTime Library -
Kar - 28.04.2015
Recompiled with Visual Studio 2013 if anyone wants to use .NET framework 4.5+ only.
http://www.solidfiles.com/d/ca5fcbcc3f/CTime.dll
Re: CTime Library -
delfino - 06.02.2016
Quote:
Originally Posted by Marricio
I get this:
Код:
[21:36:49] Server Plugins
[21:36:49] --------------
[21:36:49] Loading plugin: CTime
[21:36:49] Failed.
I would try to re-compile the plugin, but I don't know how to do that!
Already tried with the files provided above, but no luck. Any help?
|
I got exactly the same problem, downloaded the 'latest' version and also tried to re-compile the plugin, witout luck.
Anyone which can help me out here? I am stuck!
Re: CTime Library -
vannesenn - 16.06.2016
Does Unix count and leap year?
Re: CTime Library -
Gigi-The-Beast - 16.06.2016
Quote:
Originally Posted by [HLF]Southclaw
Yes, unix timestamps "just work" thanks to lots of very clever people and lots of hard work, it's kind of like magic.
|
Thanks for the video, it was fun to watch.
Re: CTime Library -
vannesenn - 18.06.2016
How to convert Unix timestamp to different format than Sun Oct 30 23:21:51 2011? Eg. I want to convert timestamp to day. month. year. hour:minute

econd. Similar function exist in PHP, it's date, eg. echo date('m/d/Y', 1299446702);