31.08.2013, 21:03
Quote:
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 Код:
new Year, Month, Day; getdate(Year, Month, Day); if(!strcmp(GetWeekDay(Day, Month, Yeaer), "Saturday"), 1) { printf("Today is Saturday!"); } |
Thanks mate! You really helped me out on this one!
EDIT: Spoke out too soon got a warning:
warning 206: redundant test: constant expression is non-zero