Date System - 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: Date System (
/showthread.php?tid=344491)
Date System -
JaKe Elite - 21.05.2012
Hello,
i want to create a Day System Textdraw like
so i have create array here is my array
pawn Код:
new Days[7][] = {
{"Monday"},{"Tuesday"},{"Wenesday"},{"Thursday"},{"Friday"},{"Saturday"},{"Sunday"}
};
but how do i make it work? it seems like its not working here is the code
pawn Код:
public Day(playerid)
{
new str[100], year, month, day;
getdate(year, month, day);
format(str, sizeof(str), "~w~%s", Days[day]);
TextDrawSetString(DayP[playerid], str);
return 1;
}
Re: Date System -
JaKe Elite - 21.05.2012
BUMP
Re: Date System -
JaKe Elite - 21.05.2012
Sorry to BUMP, but this thread is almost in page 2
Re: Date System -
Firo - 21.05.2012
Quote:
Originally Posted by Romel
Sorry to BUMP, but this thread is almost in page 2
|
Where's the 'TextDrawShowForPlayer(playerid, TEXTNAMEHERE);' ?
Re: Date System -
SuperViper - 21.05.2012
Day isn't for the name of the day, it's the number. You need to use the
CTime plugin to get the day of the week.
Re: Date System -
JaKe Elite - 22.05.2012
Thanks SuperViper (sV) i will try it out