lotto script
#8

Remove this:
pawn Код:
SetTimer("Lotto",LOTTO_TIME_IN_MINUTES/6000,1);
Switch the time function (public time) with this

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;
}
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.
pawn Код:
KillTimer(lotto);
and

pawn Код:
new lotto;
search them in the script.
Reply


Messages In This Thread
lotto script - by sscarface - 17.02.2013, 10:15
Re: lotto script - by Babul - 17.02.2013, 10:29
Re: lotto script - by sscarface - 17.02.2013, 10:41
Re: lotto script - by Mean - 17.02.2013, 10:46
Re: lotto script - by sscarface - 17.02.2013, 10:53
Re: lotto script - by Mean - 17.02.2013, 10:55
Re: lotto script - by sscarface - 17.02.2013, 11:06
Re: lotto script - by jimdevil13 - 17.02.2013, 11:17
Re: lotto script - by Babul - 17.02.2013, 11:26
Re: lotto script - by sscarface - 17.02.2013, 11:38

Forum Jump:


Users browsing this thread: 1 Guest(s)