Hello guys, i don't understand why the code don't work
clsConn is a list from iC source, I have this source for documentation.
Can anyone help me please ?
clsConn Conn = new clsConn();
var mph = car.Speed / 146;
Conn.InPlace1Dist = ((int)Math.Sqrt(Math.Pow(car.X - (- 102 * 196608), 2) + Math.Pow(car.Y - (-42 * 196608), 2)) / 65536);
if (Conn.InPlace1Dist <= 4 && (mph <= 4))
{
insim.Send(new IS_BTN {Text = "^7Welcome", BStyle = ButtonStyles.ISB_DARK, H = 15, W = 109, T = 55, L = 46, ClickID = 10, UCID = 0, ReqI = 10});
}
clsConn is a list from iC source, I have this source for documentation.
Can anyone help me please ?