![]() |
|
#1
|
|||
|
|||
![]()
You will get nothing:
Equals compares the complete string, you should use Contains(..). |
#2
|
|||
|
|||
![]()
Oddly, it works
![]() this is an example, but I am pulling and passing a number of things now some declarations Code:
bool timeIO;// = true; //time indicator switch on/off double timevalue; double timeindicator; i then find the data, and parse to game Code:
idxIO = ConfigList.FindIndex(r => r.ConfigName.Equals("timeIO")); idxTV = ConfigList.FindIndex(s => s.ConfigName.Equals("timevalue")); double.TryParse(ConfigList[idxTV].ConfigValue, out timevalue); Im trying to set as realtime update, the only bit not working. at the moment it loads on start and stop of mission. Code:
timeIO = (ConfigList[idxIO].ConfigValue == "ON" ? true : false); if (timeIO == true) { if (Time.current() >= timeindicator) { ScreenMsg(-1, "Elapsed Time:Min:" + timeindicator / 60 + " Secs:" + timeindicator + " Ticks:" + timeindicator * 30); } } if (Time.current() >= timeindicator) { timeindicator = timeindicator + timevalue; } Last edited by Smokeynz; 03-21-2012 at 09:32 AM. |
![]() |
Thread Tools | |
Display Modes | |
|
|