:$Sziasztok!
Minden egész órában sorsolni kéne,és valamiért néha kihagyja a sorsolást.
A timer a szeró indulásakor indul el 1 perces repeattel.Kb. minden ötödik órában nincs sorsolás.
new ora,p,mp;
gettime(ora,p,mp);
if(p == 0)
{
Kamat = random(30)+20;
Lotto1sz = (random(50)+1);
for(new x;x<100;x++)
{
Lotto2sz = (random(50)+1);
if(Lotto2sz != Lotto1sz)
{
break;
}
}
for(new x;x<100;x++)
{
Lotto3sz = (random(50)+1);
if(Lotto3sz != Lotto1sz && Lotto3sz != Lotto2sz)
{
break;
}
}
for(new x;x<100;x++)
{
Lotto4sz = (random(50)+1);
if(Lotto4sz != Lotto1sz && Lotto4sz != Lotto2sz && Lotto4sz != Lotto3sz)
{
break;
}
}
for(new x;x<100;x++)
{
Lotto5sz = (random(50)+1);
if(Lotto5sz != Lotto1sz && Lotto5sz != Lotto2sz && Lotto5sz != Lotto3sz && Lotto5sz != Lotto4sz)
{
break;
}
}.....
[mod]Kitettem helyetted a pawn code taget![/mod]
:$Sziasztok!
Minden egész órában sorsolni kéne,és valamiért néha kihagyja a sorsolást.
A timer a szeró indulásakor indul el 1 perces repeattel.Kb. minden ötödik órában nincs sorsolás.
new ora,p,mp;
gettime(ora,p,mp);
if(p == 0)
{
Kamat = random(30)+20;
Lotto1sz = (random(50)+1);
for(new x;x<100;x++)
{
Lotto2sz = (random(50)+1);
if(Lotto2sz != Lotto1sz)
{
break;
}
}
for(new x;x<100;x++)
{
Lotto3sz = (random(50)+1);
if(Lotto3sz != Lotto1sz && Lotto3sz != Lotto2sz)
{
break;
}
}
for(new x;x<100;x++)
{
Lotto4sz = (random(50)+1);
if(Lotto4sz != Lotto1sz && Lotto4sz != Lotto2sz && Lotto4sz != Lotto3sz)
{
break;
}
}
for(new x;x<100;x++)
{
Lotto5sz = (random(50)+1);
if(Lotto5sz != Lotto1sz && Lotto5sz != Lotto2sz && Lotto5sz != Lotto3sz && Lotto5sz != Lotto4sz)
{
break;
}
}.....
[mod]Kitettem helyetted a pawn code taget![/mod]