21.05.2012, 11:27
Hello,
i want to create a Day System Textdraw like
so i have create array here is my array
but how do i make it work? it seems like its not working here is the code
i want to create a Day System Textdraw like
Код:
Saturday
pawn Код:
new Days[7][] = {
{"Monday"},{"Tuesday"},{"Wenesday"},{"Thursday"},{"Friday"},{"Saturday"},{"Sunday"}
};
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;
}