Second delay
sleep(10);
Sleep(seconds), keep trying every second until the checkout is successful.
Example code:
int err_stat;
err_stat = 1;
while (err_stat) {
send_wait(0, group_leader, "checkout", dob_ref);
if (!msg_error()) {
err_stat = 0;
} else {
sleep(1); // 1 second
}
Where can I find Spel functions documentation?