Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 17:57:43 +0000



Post From: Error with Sim Lock & Orders being executed

[2024-06-24 13:57:03]
ForgivingComputers.com - Posts: 960
This doesn't compile as-is.

These should be part of the scsf (above or below SetDefaults):

int Hour = sc.BaseDateTimeIn[sc.Index].GetHour();
int Minute = sc.BaseDateTimeIn[sc.Index].GetMinute();
int Second = sc.BaseDateTimeIn[sc.Index].GetSecond();

LockEndTime = sc.CurrentSystemDateTime + 15 * MINUTES; // Set lock duration to 15 minutes

MINUTES is undefined.

Correct code:

LockEndTime = sc.CurrentSystemDateTime + SCDateTime::MINUTES(15); // Set lock duration to 15 minutes

Date Time Of Last Edit: 2024-06-24 14:08:59