je" vous présente la fonction
Code : Tout sélectionner
Func quitter()
if @error=1 then
msgbox(0,"","à bientot")
Exit
EndIf
Return ""
EndFunc
voici tout mon script
Code : Tout sélectionner
Global $value1,$value2,$alea,$proposition,$introduit
$value1=inputbox("question","entrez la valeur minimale")
quitter()
$value2=inputbox("question","entrez la valeur maximale")
quitter()
$alea=random($value1,$value2,1)
while 1
while 1
$proposition=inputbox(0,"entrez le bon chiffre")
quitter()
EndIf
if $proposition>$alea Then
MsgBox(0,"","superieure à la valeur")
ElseIf $proposition<$alea Then
msgbox(0,"","inferieur à la valeur")
Else
ExitLoop
EndIf
WEnd
$answer=msgbox(4,"","correcte! voulez-vous recomencer?")
If $answer=7 then Exitloop
WEnd
Func quitter()
if @error=1 then
msgbox(0,"","à bientot")
Exit
EndIf
Return ""
EndFunc
si quelqu’un pouvait me dire ou est le problème. merci d'avance




