Date System
#1

Hello,
i want to create a Day System Textdraw like

Код:
Saturday
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;
}
Reply
#2

BUMP
Reply
#3

Sorry to BUMP, but this thread is almost in page 2
Reply
#4

Quote:
Originally Posted by Romel
Посмотреть сообщение
Sorry to BUMP, but this thread is almost in page 2
Where's the 'TextDrawShowForPlayer(playerid, TEXTNAMEHERE);' ?
Reply
#5

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.
Reply
#6

Thanks SuperViper (sV) i will try it out
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)