Extracting parts of a string.
#6

OT: strmid should do the job

Quote:
Originally Posted by Max_Coldheart
Посмотреть сообщение
I'm sorry for asking a question in this thread, but what does that <_> mean in the middle of the sscanf? (I'm feeling stupid now)
Well basically, it's part of the delimiter specifier, which tells sscanf when to split a string:
pawn Код:
sscanf("Brown:Poop", "p<:>s[24]s[24]", st1, st2);
This would split the string in two pieces: 'Brown' and 'Poop'.

Also: https://sampforum.blast.hk/showthread.php?tid=120356
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)