Quote:
Originally Posted by Kakioshe22
PHP код:
forward ContestAnnouncer();
public ContestAnnouncer()
{
new string[128], sum1, sum2, sumreward;
sum1 = random((200-10)) + 10;
sum2 = random((200-5)) + 5;
sumreward = random((20-10)) + 10;
sumanswer = sum1 + sum2;
ContestRunning = true;
ContestCooldown = 60;
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;
}
|
sum1, sum2 and sumreward are globally defined..