SA-MP Forums Archive
time online and register date - 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)
+--- Thread: time online and register date (/showthread.php?tid=460416)



time online and register date - RoJoK3R - 28.08.2013

How can I show my online time and date readings players.
data save system is default.
exemple:
Код:
format(LineForFile, 100, "Password %s\r\n", APlayerData[playerid][PlayerPassword]); // Construct the line: "Password <playerpassword>"
	fwrite(PFile, LineForFile); // And save it to the file



Re: time online and register date - Lorrden - 28.08.2013

Use
pawn Код:
gettime();
https://sampwiki.blast.hk/wiki/Gettime

and
pawn Код:
getdate();
https://sampwiki.blast.hk/wiki/Getdate




Re: time online and register date - RoJoK3R - 28.08.2013

how to use


Re: time online and register date - Tanush123 - 28.08.2013

Quote:
Originally Posted by RoJoK3R
Посмотреть сообщение
how to use
If you click on it and look in the box, you will see...


Re: time online and register date - RoJoK3R - 28.08.2013

I do not know


Re: time online and register date - RoJoK3R - 28.08.2013

Bumb :d


Re: time online and register date - Skribblez - 28.08.2013

pawn Код:
new year, month, day, hour, minute, second;
getdate(year, month, day);
gettime(hour, minute, second);

printf("Today is: %d/%d/%d and the time is %d:%d:%d", month, day, year, hour, minute, second);



Re: time online and register date - RoJoK3R - 28.08.2013

How to use in register date (?


Re: time online and register date - RoJoK3R - 29.08.2013

Bumb


Re: time online and register date - RoJoK3R - 29.08.2013

someone?


Re: time online and register date - doreto - 29.08.2013

No Spam - If you are adding no useful information to a topic, you are spamming. This includes memes of any sort, especially in the more serious areas of the forum.

No Double Posting - There is a modify button , use it. However, bumping a topic in which you have or require further information is allowed after at least 24 hours. Note that two identical posts appearing at the same time is usually a mistake attributed to lag, and will not be penalizsed (but the second one will be removed).


Re: time online and register date - RoJoK3R - 31.08.2013

bumb :d