Strtok problem
#4

Seperator allows you for where to split the string, if it's empty it'll split at the nearest space, if you put in "|" it's return text from that | to the next |

pawn Код:
strtok("Hey guys how you doing?", 0);
Results in an outcome of "guys"

pawn Код:
strtok("Hey guys how you |doing|", 0, "|");
Results in an outcome of "doing"
Reply


Messages In This Thread
Strtok problem - by LasTRace - 07.08.2010, 11:43
Re: Strtok problem - by LasTRace - 07.08.2010, 12:02
Re: Strtok problem - by Claude - 07.08.2010, 12:46
Re: Strtok problem - by Hiddos - 07.08.2010, 12:49
Re: Strtok problem - by TheChaoz - 07.08.2010, 13:37
Re: Strtok problem - by LasTRace - 07.08.2010, 13:50

Forum Jump:


Users browsing this thread: 1 Guest(s)