Login Page - Create Account

Support Board


Date/Time: Mon, 16 Sep 2024 19:05:50 +0000



Post From: Error with Sim Lock & Orders being executed

[2024-06-24 13:57:03]
ForgivingComputers.com - Posts: 929
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