Extracting parts of a string.
#1

I feel really stupid because this seems like such a simple thing to do, yet I can't find a way to do it!

Anyways, for example I have the name "Russell_Rhodes" and I want to extract "Russell" and store that into a variable (i.e. gFirstName[playerid]) and then do the same with "Rhodes" (i.e. gLastName[playerid]). Of course, I am obtaining a player's name and will need to work from just figuring out what's before (and after) the underscore. How could I do that?
Reply


Messages In This Thread
Extracting parts of a string. - by Scenario - 04.12.2011, 05:38
Re: Extracting parts of a string. - by [HiC]TheKiller - 04.12.2011, 06:23
Re: Extracting parts of a string. - by Babul - 04.12.2011, 07:53
Re: Extracting parts of a string. - by Max_Coldheart - 04.12.2011, 08:12
Re: Extracting parts of a string. - by [MG]Dimi - 04.12.2011, 08:22
Re: Extracting parts of a string. - by Hiddos - 04.12.2011, 08:29
Re: Extracting parts of a string. - by Scenario - 04.12.2011, 12:03
Re: Extracting parts of a string. - by playbox12 - 04.12.2011, 12:22
Re: Extracting parts of a string. - by Scenario - 04.12.2011, 12:29
Re: Extracting parts of a string. - by Vince - 04.12.2011, 12:31

Forum Jump:


Users browsing this thread: 1 Guest(s)