Well I am having difficulty doing a simple thing. I am trying to do coordinates for an action in C#. Here is the code:
There are no errors reported in C#, but it doesn't do the action in LFS. Please can you help?
if ((Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Lotto == 0) && ((MCI.Info[i].X / 13021738) >= -103) && ((MCI.Info[i].X / 13044727) <= -100) && ((MCI.Info[i].Y / 10070602) >= -6) && ((MCI.Info[i].Y / 10621978) <= -5) && ((MCI.Info[i].Speed / 147) <= 3))
{
InSim.Send_MST_Message("/msg ^7" + (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Username) + " found a lottery ticket!");
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Lotto = 1;
}
There are no errors reported in C#, but it doesn't do the action in LFS. Please can you help?