Problem with date timer
#1

Hello ladies and guys,

I wrote yesterday a timer for my server. This timer should write every 60 minutes the date of the day to every player only once. But in fact the server send this message 30+ times. I don't know what a failure I made. I hope anybody can help me with this:

pawn Код:
forward DatumTimer();
Under GameModeInit

pawn Код:
SetTimer("DatumTimer",36000000,true);
The whole code:

pawn Код:
public DatumTimer()
{
    new year, month, day;
    getdate (year, month, day);
    new coordsstring[256];
    format(coordsstring, sizeof(coordsstring),"SERVER: Datum: %d.%d.%d",day,month,year);
    SendClientMessageToAll(0xFF0000FF,coordsstring);
    return 1;
}
Regards, ThomasTailor93
Reply


Messages In This Thread
Problem with date timer - by ThomasTailor93 - 07.01.2011, 11:42
Re: Problem with date timer - by JaTochNietDan - 07.01.2011, 13:23
AW: Problem with date timer - by ThomasTailor93 - 07.01.2011, 13:45

Forum Jump:


Users browsing this thread: 1 Guest(s)