Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Func safecheck($action, $check_action, $error_action)
- Local $attempts = 3
- Do
- $attempts -= 1
- Call($action)
- sleep(1000)
- Until Call($check_action) Or $attempts = 0
- If Not Call($check_action) And $attempts = 0 Then
- Local $attempts = 2
- Do
- $attempts -= 1
- Call($error_action)
- sleep(1000)
- Until Call($check_action) Or $attempts = 0
- EndIf
- If Not Call($check_action) And $attempts = 0 Then
- alarm()
- EndIf
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement