![]() |
How would I call a const string list to display on screen?
Hi,
I am trying to call a list on screen of objectives completed. Is there a way to call the cost string into a list? Code:
const string Objective_P = " German Supply Tankers Survived,"; //BlueObjective3 Survived Code:
Objective_Total_Blue += (Objective_P);] Code:
GamePlay.gpHUDLogCenter(new Player[] { player }, "Objective_Total_Red ("")": "Objective_Total_Blue("")", new object[] { Objective_Total_Red.ToString(), Objective_Total_Blue.ToString() }); |
To Add the string use (the strings should declared global):
Code:
Objective_Total_Blue += Objective_P; Code:
GamePlay.gpHUDLogCenter(null, "Red Objective Total: {0} :: Blue Objective Total: {1} ", new object[] { Objective_Total_Red, Objective_Total_Blue }); |
Thanks kodiak, i think I am getting the hang of those now
I have the global string already :) so thats good. Now this string code I am getting the hang of it and can use lots now. thanks. Will test when i get home, code looks good and should work fine. Thanks. I will be putting your name in lights for Credit in helping me build this new ATAG mega mission RedvBlue1.0. 2200 lines of coding and no errors feels goooood. :D |
All times are GMT. The time now is 02:57 AM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.