QUOTE
You are my hero!
Dream.In.Code... where the code heroes hang out. We are like the justice league of code. PsychoCoder is the Flash, NickDMax is Firestorm, Nykc is black lightning, no2pencil is Red tornado, letthecolorsrumble is the Green Latern, benigndesign is Black Canary, supersweety is wonder woman, supersloth is superman and I... I am batman!
Now skyhawk... while he might be on par with Professor xavier of sorts, he doesn't have the ability to kill men. He is a lady killer instead.
TOGETHER, WE FORM THE DIC JUSTICE LEAGUE!
We fight for justice, to protect newbies, and spread code of hope to all those who seek it.

QUOTE(Dumpen @ 22 Mar, 2008 - 08:54 AM)

I have created a way so it takes ice monster
But is it a good way and how do I combine the string that I marked with a bold with a space between so it is Monster Name and not MonsterName?
CODE
// My string to split
[b]string str = pieces[2] + pieces[3];[/b]
// Split seperator
char[] seps = {' '};
// Split the string into parts.
string[] parts = str.Split(seps);
for (int i = 0; i < parts.Length; i++)
monster_name_textbox.Text = parts[i].Replace("\"", "");;
Im guessing it should be something like:
string str = pieces[2] + " " + pieces[3]; but cant seem to get it to wkr
Well if you simply deleted the space in the name, it will be read in as a whole string there. You might want to consider replacing the space with a special character like an underscore and simply read in the name and replace the underscore with the space.
It is up to you and your design as to how you want to do that.
This post has been edited by Martyr2: 22 Mar, 2008 - 08:03 AM