SA-MP Forums Archive
Get The Server Time - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Get The Server Time (/showthread.php?tid=98114)



Get The Server Time - virspector - 19.09.2009

How to get the server time? Using GetServerTime() or GetWorldTime() will make an error (Because it doesn't exist ). You know how?


Re: Get The Server Time - Calgon - 19.09.2009

pawn Код:
/* Date/time functions
 *
 * © Copyright 2001-2005, ITB CompuPhase
 * This file is provided as is (no warranties).
 */

#if defined _time_included
 #endinput
#endif
#define _time_included
#pragma library Time

native gettime(&hour=0, &minute=0, &second=0);
native getdate(&year=0, &month=0, &day=0);
native tickcount(&granularity=0);