select before and after text
#2

not sure just made this not tested but might work
pawn Код:
#define Seprate "hello,ic3_cr3am"// storing the variable to seprate

new pos=strfind(Seprate, ",", true);//finding how far comma is from start

new str1[30],str2[30];
strmid(str1,SEPRATE,0,pos);//extracting characters before comma that will be stored in str1
strmid(str2,SEPRATE,pos+1,strlen(SEPRATE));//extracting characters after comma that will be stored in str2
Reply


Messages In This Thread
select before and after text - by ic3cr3am - 29.04.2014, 10:34
Re: select before and after text - by BroZeus - 29.04.2014, 10:52
Re: select before and after text - by Vince - 29.04.2014, 11:23
Re: select before and after text - by iFarbod - 29.04.2014, 11:47

Forum Jump:


Users browsing this thread: 1 Guest(s)