SendClientMessageToAll not sending
#1

Hi, I'm trying to get my reaction test script working and I'm sending a message to all on a timer, here is the code:

pawn Код:
forward ContestAnnouncer();
public ContestAnnouncer()
{
    sum1 = random((200-10)) + 10;
    sum2 = random((200-5)) + 5;
    sumreward = random((20-10)) + 10;
    sumanswer = sum1 + sum2;
    ContestRunning = true;
    ContestCooldown = 60;
    new string[128];
    format(string, sizeof(string), "{3399FF}[SERVER]{FFFFFF} A new contest has started! the first one to enter the correct answer to {FFFF00}%i + %i{FFFFFF} wins {FFFF00}%i{FFFFFF} score!", sum1, sum2, sumreward);
    SendClientMessageToAll(-1, string);
    return 1;
}
I've tried many things to get the sendclientmessagetoall working, but it just isn't sending. The "nobody has answered!" message sends, though.
the timer is defined as:

pawn Код:
SetTimer("ContestAnnouncer", 300000, true); // Called every 5 minutes with 300000, announces a random contest.
Reply


Messages In This Thread
SendClientMessageToAll not sending - by Xenoyia - 27.07.2012, 21:57
Re: SendClientMessageToAll not sending - by Kakioshe22 - 27.07.2012, 22:05
Re: SendClientMessageToAll not sending - by Xenoyia - 27.07.2012, 22:05
Re: SendClientMessageToAll not sending - by Ranama - 28.07.2012, 00:10
Re : SendClientMessageToAll not sending - by lelemaster - 28.07.2012, 00:10
Re: Re : SendClientMessageToAll not sending - by Ranama - 28.07.2012, 00:22
Re: SendClientMessageToAll not sending - by SuperViper - 28.07.2012, 01:11
AW: SendClientMessageToAll not sending - by Tigerkiller - 28.07.2012, 01:42

Forum Jump:


Users browsing this thread: 1 Guest(s)