17.02.2013, 11:17
Remove this:
Switch the time function (public time) with this
Should work.
Edit: Make sure you remove the timer completely and the LOTTO_TIME_IN_MINUTES variable, since you don't need it. The variable and the killer.
You should be able to remove the timer by deleting those two lines.
and
search them in the script.
pawn Код:
SetTimer("Lotto",LOTTO_TIME_IN_MINUTES/6000,1);
pawn Код:
public Time()
{
minute++;
if(minute == 60)
{
minute = 0;
hour++;
if(hour == 24) hour = 0;
}
if(hour == 20) // Change 20 to whatever time you want the lotto to draw.
{
lotto();
}
new string[6];
format(string,sizeof(string),"%02d:%02d",hour,minute);
TextDrawSetString(timetext, string);
SetWorldTime(hour);
checkevents();
return 1;
}
Edit: Make sure you remove the timer completely and the LOTTO_TIME_IN_MINUTES variable, since you don't need it. The variable and the killer.
You should be able to remove the timer by deleting those two lines.
pawn Код:
KillTimer(lotto);
pawn Код:
new lotto;