#2

Hello.

I think you are a little bit confused, aren't you?
"month" is an integer so evmonth should be an integer too.
"day" is an integer so evday should be an integer too.

PHP код:
new evday;
new 
evmonth;
LoadEvents()
{
   new 
daymonthyear;
   
getdate(yearmonthday);
   
cache_get_field_content(0"evtext"eventmysql129);
   
evday cache_get_field_content_int(0"evday"mysql);
   
evmonth cache_get_field_content_int(0"evmonth"mysql);
   if(
month == evmonth && day == evday)
   {
   for(new 
0MAX_EVENTSi++)
   {
      if(
Events[i][EvName] != && Events[i][Day] != && Events[i][Month] != 0)
      {
         if(
year == 2016)
         {
            
format(stringsizeof(string), "[BOT]: Happy %s (%02d/%02d)"eventGetDay(day,month), GetMonth(month));
         }
         else
         {
            
format(stringsizeof(string), "[BOT]: Happy %s (%02d/%02d)"eventReturnDayName(GetDayOfWeek(yearmonthday)), GetMonth(month));
         }
           
SendClientMessageToAll(-1string);
         
Events[i][EvName] == event;
      }
     }
   }
   return 
1;

This will be the correct version.

Note: Please change the field-type of "evday" and "evmonth" from VARCHAR to "Int".
Reply


Messages In This Thread
Help - by Zorono - 08.08.2016, 16:25
Re: Help - by Mencent - 08.08.2016, 16:33
Re: Help - by Zorono - 08.08.2016, 16:38
Re: Help - by K0P - 08.08.2016, 16:40
Re: Help - by K0P - 08.08.2016, 16:43
Re: Help - by Zorono - 08.08.2016, 21:07

Forum Jump:


Users browsing this thread: 1 Guest(s)