Get the next word in a string?
#2

pawn Код:
new dest[24];
new str[] = "Name: John - Color: Orange - Age: 29 - IP: 127.0.0.1";
new abc = strfind(str,"Color:");
strmid(dest,str,abc+7,strfind(str,"-",true,abc+7)-1);
print(dest);
Reply


Messages In This Thread
Get the next word in a string? - by linuxthefish - 18.08.2011, 13:17
Re: Get the next word in a string? - by Jefff - 18.08.2011, 14:30
Re: Get the next word in a string? - by RyDeR` - 18.08.2011, 14:46
Re: Get the next word in a string? - by iPLEOMAX - 18.08.2011, 15:22
Re: Get the next word in a string? - by linuxthefish - 18.08.2011, 18:02

Forum Jump:


Users browsing this thread: 1 Guest(s)