Hello guys! I started working on InSim.Net cruise but now i want to use the IS_PLC packets...
The problem is there the code is too long...
Currently i started like that:
but it will take me too much time to finish it.
Can you help me to make it in less lines?![Smile](/static/smilies/smile.gif)
The problem is there the code is too long...
Currently i started like that:
if (Conn.Cars.Contains("UF1")) { insim.Send(new IS_PLC { UCID = Conn.UniqueID, Cars = CarFlags.UF1 }); }
if (Conn.Cars.Contains("UF1") && Conn.Cars.Contains("XFG")) { insim.Send(new IS_PLC { UCID = Conn.UniqueID, Cars = CarFlags.XFG }); }
but it will take me too much time to finish it.
Can you help me to make it in less lines?
![Smile](/static/smilies/smile.gif)