Split a string into two strings
#3

you can just do
pawn Код:
strmid(secondstring, mainstring, 40, strlen(string)); //get part of string from 40th character to end of mainstring.
and then
pawn Код:
strdel(mainstring, 40, strlen(string)); // deletes string part from 40th character to end of string
Hence you can now use mainstring as your first message and second and your second.
Elaborate this method more to get exactly what you need.

I recommend you something like i said because this would be faster than rather looping into strings and then splitting them out.
Reply


Messages In This Thread
Split a string into two strings - by Gilmar - 23.03.2014, 18:08
Re: Split a string into two strings - by Vince - 23.03.2014, 18:31
Re: Split a string into two strings - by Niko_boy - 23.03.2014, 18:34
Re: Split a string into two strings - by Gilmar - 23.03.2014, 21:40

Forum Jump:


Users browsing this thread: 2 Guest(s)