31.08.2013, 20:29
You can't compare strings in that way, you should pass the current date in the stock and then return it as a string, and for comparing two string you should use strcmp
https://sampwiki.blast.hk/wiki/Strcmp
so the code becomes
(You shold have only the GetWeekDay stock)
https://sampwiki.blast.hk/wiki/Strcmp
so the code becomes
Код:
new Year, Month, Day; getdate(Year, Month, Day); if(!strcmp(GetWeekDay(Day, Month, Yeaer), "Saturday"), 1) { printf("Today is Saturday!"); }