Novità

uffa..........ma dove sbaglio!!!!!!!

giandy

Member
Ma perchè non riesco mai a far fare i conti allo script

ambata 1° BA - 4°RO x 3° FI

abb. ambo
1° BA - 1° FI x 1° TO
1° BA +1° GEx 4° GE

abb. Terno
1° BA - 1° FI + 21
1° BA + 2° CA + 31

Codice:
[/COLOR]Sub Main()Dim aruo(2)
Dim aposte(3)
aposte(2) = 1 'x ambo
aposte(3) = 1 'x terno
Dim anum(10)
r = CInt(InputBox("SU CHE RUOTA DI RICERCA?",,10))
spia = CInt(InputBox("QUALE NUMERO SPIA?",,90))
ee = CInt(InputBox("QUANTE ESTRAZIONI CONTROLLO?",,160))
clp = CInt(InputBox("QUANTI COLPI?",,10))
co = 0' contatore
fin = EstrazioneFin
ini = EstrazioneFin - ee
For es = ini To fin
If Posizione(es,r,spia) > 0 Then
anum(1) = Fuori90(90-Estratto(es,BA_,1) - Estratto(es,RO_,4)*(Estratto(es,FI_,3)))
anum(2) = Fuori90(90-Estratto(es,BA_,1) - Estratto(es,FI_,1)*(Estratto(es,TO_,1)))
anum(3) = Fuori90(Estratto(es,BA_,1) + Estratto(es,GE_,1)*(Estratto (es,GE_,4)))
anum(4) = Fuori90(Estratto(es,BA_,1) - Estratto(es,FI_,1)+ 21)
anum(5) = Fuori90(Estratto(es,BA_,1) + Estratto(es,CA_,2)+ 31)
aruo(1) = VE_
co = co + 1
Scrivi
Scrivi "Caso n°: " & CInt(co),1
Scrivi "NUMERO SPIA " & CInt(spia) & " su " & NomeRuota(r) & " in data  " & DataEstrazione(es),1
ImpostaGiocata 1,anum,aruo,aposte,clp
Gioca es
End If
Next
ScriviResoconto
End Sub


[COLOR=#333333]



Perchè?
 

claudio8

Premium Member
Sub Main()
Dim aruo(2)
Dim aposte(3)
aposte(2) = 1 'x ambo
aposte(3) = 1 'x terno
Dim anum(10)
r = CInt(InputBox("SU CHE RUOTA DI RICERCA?",,10))
spia = CInt(InputBox("QUALE NUMERO SPIA?",,90))
ee = CInt(InputBox("QUANTE ESTRAZIONI CONTROLLO?",,160))
clp = CInt(InputBox("QUANTI COLPI?",,10))
co = 0' contatore
fin = EstrazioneFin
ini = EstrazioneFin - ee
For es = ini To fin
If Posizione(es,r,spia) > 0 Then
anum(1) = Fuori90(90 + (Estratto(es,BA_,1) - Estratto(es,RO_,4))*(Estratto(es,FI_,3)))
anum(2) = Fuori90(90 +( Estratto(es,BA_,1) - Estratto(es,FI_,1))*(Estratto(es,TO_,1)))
anum(3) = Fuori90((Estratto(es,BA_,1) + Estratto(es,GE_,1))*(Estratto(es,GE_,4)))
anum(4) = Fuori90(90 + Estratto(es,BA_,1) - Estratto(es,FI_,1) + 21)
anum(5) = Fuori90(Estratto(es,BA_,1) + Estratto(es,CA_,2) + 31)
aruo(1) = VE_
co = co + 1
Scrivi
Scrivi "Caso n°: " & CInt(co),1
Scrivi "NUMERO SPIA " & CInt(spia) & " su " & NomeRuota(r) & " in data " & DataEstrazione(es),1
ImpostaGiocata 1,anum,aruo,aposte,clp
Gioca es
End If
Next
ScriviResoconto
End Sub


Prova così .
Spero di aver azzeccato le parentesi tra i vari operatori che hai utilizzato.

Ricordati che il 90+ e non - lo puoi mettere sempre, con il fuori90. esso serve ad evitare, quando all'interno del calcolo vi è una sottrazione, ripeto ad evitare che venga un risultrato con segno negativo.
Imposta bene le parntesi che separano le operazioni che intendi fare, altrimenti il bravo matematico che sta nel tuo pc fa prima le moltiplicazioni e divisioni e poi le addizioni e sottrazioni.
 

giandy

Member
Grazie claudio ora va meglio , nel senso che nell' ultima estrazione gli ultimi tre numeri sono corretti ed i primi due risultano non calcolati

esempio fatto a mano risultato 66.9.46.78.56 (corretto)

con lo script risultato 90.90.46.78.56 (primi due numeri non calcolati correttamente)

Credo che sia una questione di parentesi come dici tu un po quando in algebra si usavano le graffe quadre e tonde ma non riesco a trovare quelle corrette
 

giandy

Member
Trovato , mancava una doppia parentesi

anum(1) = Fuori90((90 + (Estratto(es,BA_,1)) - Estratto(es,RO_,4))*(Estratto(es,FI_,3)))
anum(2) = Fuori90((90 +( Estratto(es,BA_,1)) - Estratto(es,FI_,1))*(Estratto(es,TO_,1)))

appena dopo il fuori 90 ci va una doppia parentesi

Grazie Claudio
 

giandy

Member
questo è il listato che mi risulta corretto


Codice:
Sub Main()Dim aruo(2)
Dim aposte(3)
aposte(2) = 1 'x ambo
aposte(3) = 1 'x terno
Dim anum(10)
r = CInt(InputBox("SU CHE RUOTA DI RICERCA?",,10))
spia = CInt(InputBox("QUALE NUMERO SPIA?",,90))
ee = CInt(InputBox("QUANTE ESTRAZIONI CONTROLLO?",,160))
clp = CInt(InputBox("QUANTI COLPI?",,10))
co = 0' contatore
fin = EstrazioneFin
ini = EstrazioneFin - ee
For es = ini To fin
If Posizione(es,r,spia) > 0 Then
anum(1) = Fuori90((90 + (Estratto(es,BA_,1)) - Estratto(es,RO_,4))*(Estratto(es,FI_,3)))
anum(2) = Fuori90((90 + (Estratto(es,BA_,1)) - Estratto(es,FI_,1))*(Estratto(es,TO_,1)))
anum(3) = Fuori90((90 + (Estratto(es,BA_,1)) + Estratto(es,GE_,1))*(Estratto(es,GE_,4)))
anum(4) = Fuori90((90 + (Estratto(es,BA_,1)) - Estratto(es,FI_,1) + 21))
anum(5) = Fuori90((90 + (Estratto(es,BA_,1)) + Estratto(es,CA_,2) + 31))
aruo(1) = VE_
co = co + 1
Scrivi
Scrivi "Caso n°: " & CInt(co),1
Scrivi "NUMERO SPIA " & CInt(spia) & " su " & NomeRuota(r) & " in data " & DataEstrazione(es),1
ImpostaGiocata 1,anum,aruo,aposte,clp
Gioca es
End If
Next
ScriviResoconto
End Sub

Grazie
 

Ultima estrazione Lotto

  • Estrazione del lotto
    lunedì 29 aprile 2024
    Bari
    58
    84
    30
    62
    66
    Cagliari
    45
    68
    85
    44
    01
    Firenze
    76
    52
    03
    22
    16
    Genova
    39
    05
    70
    26
    35
    Milano
    43
    86
    23
    67
    18
    Napoli
    80
    62
    88
    29
    35
    Palermo
    27
    53
    72
    71
    60
    Roma
    52
    15
    16
    24
    85
    Torino
    36
    74
    30
    73
    62
    Venezia
    55
    65
    41
    68
    13
    Nazionale
    62
    27
    48
    69
    78
    Estrazione Simbolotto
    Genova
    43
    06
    20
    12
    29
Alto